forked from ak-fortuna/fortuna
"fmtlog is a performant fmtlib-style logging library with latency in nanoseconds." ref: https://github.com/MengRao/fmtlog
22 lines
750 B
CMake
22 lines
750 B
CMake
# uses headers from https://github.com/MengRao/fmtlog
|
|
# CMakeLists.txt authored by a_mirre <a_mirre at utb.cz> (c) 2021
|
|
cmake_minimum_required (VERSION 3.20)
|
|
|
|
project (fmtlog LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
add_library(fmtlog INTERFACE)
|
|
add_library(fmtlog::fmtlog ALIAS fmtlog)
|
|
|
|
target_compile_definitions(fmtlog INTERFACE FMTLOG_HEADER_ONLY=1)
|
|
|
|
set(FMTLOG_INC_DIR ${CMAKE_INSTALL_INCLUDEDIR} CACHE STRING
|
|
"Installation directory for include files, a relative path that "
|
|
"will be joined with ${CMAKE_INSTALL_PREFIX} or an absolute path.")
|
|
|
|
target_include_directories(fmtlog INTERFACE
|
|
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
|
$<INSTALL_INTERFACE:${FMTLOG_INC_DIR}>)
|