forked from cyclus/cycamore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (26 loc) · 1.01 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Find tests generated in the binary directory
message("GENERATED TESTS DIR ${CMAKE_CURRENT_BINARY_DIR}")
message("GENERATED TESTS ${GENERATED_FILTER_LIST}")
MESSAGE("CYClUS EXECUTABLE PATH = ${CYCLUS_ROOT_DIR}/bin")
# Configure the input running script
SET(input_path ${PROJECT_SOURCE_DIR}/../input)
SET(cyclus_path ${CYCLUS_ROOT_DIR}/bin)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/run_inputs.py.in
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/run_inputs.py @ONLY)
SET(input_path ${PROJECT_SOURCE_DIR}/input)
SET(cyclus_path ${CYCLUS_ROOT_DIR}/bin)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/run_inputs.py.in
${CMAKE_CURRENT_SOURCE_DIR}/run_inputs.py @ONLY)
INSTALL(FILES run_inputs.py
DESTINATION bin
COMPONENT testing
)
# CMAKE_CONFIGURE_DEPENDS will force a rebuild on a change to the source file
FILE(GLOB test_files CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/src/*_tests.*")
FOREACH(file ${test_files})
SET_PROPERTY(
DIRECTORY
APPEND
PROPERTY CMAKE_CONFIGURE_DEPENDS ${file}
)
ENDFOREACH()