Skip to content

Commit

Permalink
tests: fix build path for unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <eduardo@calyptia.com>
  • Loading branch information
edsiper committed Oct 9, 2022
1 parent e6e4cdc commit 3896eeb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ set(UNIT_TESTS_FILES
)

set(CTR_TESTS_DATA_PATH "${CMAKE_CURRENT_SOURCE_DIR}/data")
#configure_file(
# "${CMAKE_CURRENT_SOURCE_DIR}/ctr_tests_config.h.in"
# "${CMAKE_CURRENT_BINARY_DIR}/ctr_tests_config.h"
# )
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/ctr_tests_config.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/ctr_tests_config.h"
)

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

add_test(NAME ${source_file_we}
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${source_file_we}
COMMAND ${CMAKE_BINARY_DIR}/tests/${source_file_we}
WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/tests)
set_tests_properties(${source_file_we} PROPERTIES LABELS "internal")
endforeach()

0 comments on commit 3896eeb

Please sign in to comment.