Skip to content

Commit 3896eeb

Browse files
committedOct 9, 2022
tests: fix build path for unit tests
Signed-off-by: Eduardo Silva <eduardo@calyptia.com>
1 parent e6e4cdc commit 3896eeb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎tests/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ set(UNIT_TESTS_FILES
55
)
66

77
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-
# )
8+
configure_file(
9+
"${CMAKE_CURRENT_SOURCE_DIR}/ctr_tests_config.h.in"
10+
"${CMAKE_CURRENT_BINARY_DIR}/ctr_tests_config.h"
11+
)
1212

1313
# Prepare list of unit tests
1414
foreach(source_file ${UNIT_TESTS_FILES})
@@ -27,7 +27,7 @@ if(NOT CTR_SYSTEM_WINDOWS)
2727
endif()
2828

2929
add_test(NAME ${source_file_we}
30-
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${source_file_we}
30+
COMMAND ${CMAKE_BINARY_DIR}/tests/${source_file_we}
3131
WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/tests)
3232
set_tests_properties(${source_file_we} PROPERTIES LABELS "internal")
3333
endforeach()

0 commit comments

Comments
 (0)