diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b706d8fe3802f15ff00b40be4170060157e3d08..e034b6d726b03925f87a2abb7c28e143e2def742 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,10 @@ if (NOT TARGET CONAN_PKG::bzip2) message (FATAL_ERROR "Please configure with conan bzip2 package") endif (NOT TARGET CONAN_PKG::bzip2) +if (NOT TARGET CONAN_PKG::catch2) + message (FATAL_ERROR "Please configure with conan catch2 package") +endif (NOT TARGET CONAN_PKG::catch2) + enable_testing () if (${CMAKE_VERSION} VERSION_LESS "3.12.0") list (APPEND CMAKE_CTEST_ARGUMENTS "--output-on-failure") diff --git a/readLib/CMakeLists.txt b/readLib/CMakeLists.txt index 7fd299a2597249be2b6d1e8149a9ccf1f0704b54..457fa0f20dafe7c79294aab45771501f20f5c3f9 100644 --- a/readLib/CMakeLists.txt +++ b/readLib/CMakeLists.txt @@ -4,7 +4,11 @@ set ( ) add_library (CorsikaData STATIC ${files}) -target_link_libraries (CorsikaData PUBLIC CONAN_PKG::bzip2) +target_link_libraries (CorsikaData + PUBLIC + CONAN_PKG::bzip2 + CONAN_PKG::catch2 + ) set_target_properties ( CorsikaData