Enable running the tests against an installed copy of spdlog

This commit is contained in:
Michael R. Crusoe 2020-02-07 15:39:26 +01:00
parent 4e643fa42c
commit a8d6e60ec6
No known key found for this signature in database
GPG Key ID: 3C26763F6C67E6E2

View File

@ -1,5 +1,12 @@
cmake_minimum_required(VERSION 3.2)
project(spdlog_utests CXX) project(spdlog_utests CXX)
if(NOT TARGET spdlog)
# Stand-alone build
find_package(spdlog REQUIRED)
endif()
include(../cmake/utils.cmake) include(../cmake/utils.cmake)
find_package(PkgConfig) find_package(PkgConfig)