IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 1d12f8ce authored by ralfulrich's avatar ralfulrich
Browse files

catch2 only for test

parent 0b4cabe0
No related branches found
No related tags found
No related merge requests found
Pipeline #3154 failed
......@@ -7,7 +7,6 @@ add_library (CorsikaData STATIC ${files})
target_link_libraries (CorsikaData
PUBLIC
CONAN_PKG::bzip2
CONAN_PKG::catch2
)
set_target_properties (
......@@ -35,7 +34,7 @@ install (
# add unit test, if run inside CORSIKA
if (COMMAND CORSIKA_ADD_TEST)
if (CORSIKA_DATA_WITH_TEST)
CORSIKA_ADD_TEST (testData SOURCES source/testData.cc)
CORSIKA_ADD_TEST (testData SOURCES source/testData.cc)
target_compile_definitions (
testData
PRIVATE
......@@ -44,9 +43,9 @@ if (COMMAND CORSIKA_ADD_TEST)
endif (CORSIKA_DATA_WITH_TEST)
else (COMMAND CORSIKA_ADD_TEST)
add_executable (testData source/testData.cc)
target_link_libraries (testData CorsikaData)
target_link_libraries (testData CorsikaData CONAN_PKG::catch2)
target_compile_options (testData PRIVATE -g) # do not skip asserts
target_include_directories (testData PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/readLib/externals/catch2)
target_include_directories (testData PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_compile_definitions (
testData
PRIVATE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment