mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 04:47:14 +02:00
merging refactor (replacing)
This commit is contained in:
26
tests/CMakeLists.txt
Executable file
26
tests/CMakeLists.txt
Executable file
@ -0,0 +1,26 @@
|
||||
include_directories(
|
||||
${PROJECT_SOURCE_DIR}/catch
|
||||
)
|
||||
|
||||
set(SLS_TEST_SOURCES
|
||||
test.cpp
|
||||
)
|
||||
|
||||
add_executable(tests ${SLS_TEST_SOURCES})
|
||||
target_link_libraries(tests
|
||||
slsProjectOptions
|
||||
slsProjectWarnings
|
||||
slsSupportLib
|
||||
slsDetectorShared
|
||||
slsReceiverShared
|
||||
pthread
|
||||
rt
|
||||
)
|
||||
set_target_properties(tests PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
)
|
||||
include(CTest)
|
||||
include(Catch)
|
||||
catch_discover_tests(tests)
|
||||
# #TODO! Move to automatic test discovery
|
||||
# add_test(test ${CMAKE_BINARY_DIR}/bin/testSlsReceiver)
|
3
tests/test.cpp
Executable file
3
tests/test.cpp
Executable file
@ -0,0 +1,3 @@
|
||||
// tests-main.cpp
|
||||
#define CATCH_CONFIG_MAIN
|
||||
#include "catch.hpp"
|
Reference in New Issue
Block a user