Enable running the tests against an installed copy of spdlog
authorMichael R. Crusoe <michael.crusoe@gmail.com>
Sun, 14 Jun 2020 18:46:53 +0000 (19:46 +0100)
committerNilesh Patra <npatra974@gmail.com>
Sun, 14 Jun 2020 18:46:53 +0000 (19:46 +0100)
Gbp-Pq: Name autopkgtest

example/CMakeLists.txt
tests/CMakeLists.txt

index 458ca952ef0eb6380c7ff7f1d81fb6de812c94a0..a233017404d9795b57df58ba5949b78281e0cece 100644 (file)
@@ -4,6 +4,8 @@
 cmake_minimum_required(VERSION 3.1)
 project(spdlog_examples CXX)
 
+include(../cmake/utils.cmake)
+
 if(NOT TARGET spdlog)
     # Stand-alone build
     find_package(spdlog REQUIRED)
index 3184e9b650627c1af94f01e8187a04ed7355e35d..5f96aa95dcc408e98a16f58effb8d50b580e2827 100644 (file)
@@ -1,5 +1,12 @@
+cmake_minimum_required(VERSION 3.2)
+
 project(spdlog_utests CXX)
 
+if(NOT TARGET spdlog)
+    # Stand-alone build
+    find_package(spdlog REQUIRED)
+endif()
+
 include(../cmake/utils.cmake)
 
 find_package(PkgConfig)