From: Michael R. Crusoe Date: Sun, 14 Jun 2020 18:46:53 +0000 (+0100) Subject: Enable running the tests against an installed copy of spdlog X-Git-Tag: archive/raspbian/1%1.5.0+ds-4+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d1b38f447746d1670300936bd5ce0ede07c2e6a3;p=spdlog.git Enable running the tests against an installed copy of spdlog Gbp-Pq: Name autopkgtest --- diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 458ca95..a233017 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -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) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3184e9b..5f96aa9 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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)