From 0b4cabe0fc124fb44a497712053ee187fa535948 Mon Sep 17 00:00:00 2001
From: ralfulrich <ralf.ulrich@kit.edu>
Date: Wed, 6 Jan 2021 20:21:55 +0100
Subject: [PATCH] ...also for catch2

---
 CMakeLists.txt         | 4 ++++
 readLib/CMakeLists.txt | 6 +++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7b706d8..e034b6d 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 7fd299a..457fa0f 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
-- 
GitLab