aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-06-25 16:23:21 +0200
committerThomas White <taw@physics.org>2018-06-25 16:23:21 +0200
commitec5cf28c70480540d7dd4dd36ea27643e5fa53ed (patch)
treed652341e3c12cff99014de0e4650816c83e297cc /tests/CMakeLists.txt
parent4ec097a154351883f5c3d0a8275c7d941da4d81a (diff)
Test the compiled binaries, not the installed ones
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt21
1 files changed, 14 insertions, 7 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 1fa8012a..e98c3202 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,10 +1,17 @@
-add_test(first_merge_check ${CMAKE_CURRENT_SOURCE_DIR}/first_merge_check)
-add_test(second_merge_check ${CMAKE_CURRENT_SOURCE_DIR}/second_merge_check)
-add_test(third_merge_check ${CMAKE_CURRENT_SOURCE_DIR}/third_merge_check)
-add_test(fourth_merge_check ${CMAKE_CURRENT_SOURCE_DIR}/fourth_merge_check)
-add_test(partialator_merge_check_1 ${CMAKE_CURRENT_SOURCE_DIR}/partialator_merge_check_1)
-add_test(partialator_merge_check_2 ${CMAKE_CURRENT_SOURCE_DIR}/partialator_merge_check_2)
-add_test(partialator_merge_check_3 ${CMAKE_CURRENT_SOURCE_DIR}/partialator_merge_check_3)
+add_test(NAME first_merge_check
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/first_merge_check $<TARGET_FILE:process_hkl>)
+add_test(NAME second_merge_check
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/second_merge_check $<TARGET_FILE:process_hkl>)
+add_test(NAME third_merge_check
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/third_merge_check $<TARGET_FILE:process_hkl>)
+add_test(NAME fourth_merge_check
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/fourth_merge_check $<TARGET_FILE:process_hkl>)
+add_test(NAME partialator_merge_check_1
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/partialator_merge_check_1 $<TARGET_FILE:partialator>)
+add_test(NAME partialator_merge_check_2
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/partialator_merge_check_2 $<TARGET_FILE:partialator>)
+add_test(NAME partialator_merge_check_3
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/partialator_merge_check_3 $<TARGET_FILE:partialator>)
add_executable(ambi_check ambi_check.c)
target_include_directories(ambi_check PRIVATE ${COMMON_INCLUDES})