Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
CrysFML
Commits
ec86a092
Commit
ec86a092
authored
Jul 21, 2021
by
Simon Ward
Browse files
Update CMakeLists.txt - Attempt win build release FIX
parent
af4440e2
Pipeline
#10468
failed with stages
in 12 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Python_API/Src/CMakeLists.txt
View file @
ec86a092
...
...
@@ -98,7 +98,8 @@ endif (DOXYGEN_FOUND)
#################################
# Add tests
add_test
(
NAME
"Python_API_Tests"
COMMAND
${
PYTHON_INTERPRETER_PATH
}
-m unittest discover
${
CMAKE_CURRENT_BINARY_DIR
}
/../Tests
)
add_custom_target
(
Python_Files ALL
if
(
PYSETUP
)
add_custom_target
(
Python_Files ALL
COMMAND
${
CMAKE_COMMAND
}
-E copy_directory
${
CMAKE_CURRENT_SOURCE_DIR
}
/../Tests
...
...
@@ -109,19 +110,27 @@ add_custom_target(Python_Files ALL
${
CMAKE_CURRENT_SOURCE_DIR
}
${
CMAKE_CURRENT_BINARY_DIR
}
/../Tests/CFML_api
)
else
()
add_custom_target
(
Python_Files ALL
COMMAND
${
CMAKE_COMMAND
}
-E copy_directory
${
CMAKE_CURRENT_SOURCE_DIR
}
/../Tests
${
CMAKE_CURRENT_BINARY_DIR
}
/../Tests
add_dependencies
(
Python_Files
${
LIBRARY_NAME
}
)
COMMAND
${
CMAKE_COMMAND
}
-E copy_directory
${
CMAKE_CURRENT_SOURCE_DIR
}
${
CMAKE_CURRENT_BINARY_DIR
}
/../Tests/CFML_api
if
(
NOT PYSETUP
)
add_custom_target
(
Python_SO_Files ALL
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
LIBRARY_FILENAME
}
${
CMAKE_CURRENT_BINARY_DIR
}
/../Tests/CFML_api/
${
LIBRARY_FILENAME
}
)
add_dependencies
(
Python_SO_Files
${
LIBRARY_NAME
}
)
endif
()
add_dependencies
(
Python_Files
${
LIBRARY_NAME
}
)
#################################
# Install section
#################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment