From f78261906a8c0aa8032875cd40a09470ae18af22 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Sun, 9 Feb 2020 08:14:13 +0000 Subject: [PATCH] Enable running the tests against an installed copy of spdlog Gbp-Pq: Name autopkgtest --- example/CMakeLists.txt | 2 ++ tests/CMakeLists.txt | 7 +++++++ 2 files changed, 9 insertions(+) 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) -- 2.30.2