We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6e4cdc commit 3896eebCopy full SHA for 3896eeb
tests/CMakeLists.txt
@@ -5,10 +5,10 @@ set(UNIT_TESTS_FILES
5
)
6
7
set(CTR_TESTS_DATA_PATH "${CMAKE_CURRENT_SOURCE_DIR}/data")
8
-#configure_file(
9
-# "${CMAKE_CURRENT_SOURCE_DIR}/ctr_tests_config.h.in"
10
-# "${CMAKE_CURRENT_BINARY_DIR}/ctr_tests_config.h"
11
-# )
+configure_file(
+ "${CMAKE_CURRENT_SOURCE_DIR}/ctr_tests_config.h.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/ctr_tests_config.h"
+ )
12
13
# Prepare list of unit tests
14
foreach(source_file ${UNIT_TESTS_FILES})
@@ -27,7 +27,7 @@ if(NOT CTR_SYSTEM_WINDOWS)
27
endif()
28
29
add_test(NAME ${source_file_we}
30
- COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${source_file_we}
+ COMMAND ${CMAKE_BINARY_DIR}/tests/${source_file_we}
31
WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/tests)
32
set_tests_properties(${source_file_we} PROPERTIES LABELS "internal")
33
endforeach()
0 commit comments