Files
spdlog/example/CMakeLists.txt

13 lines
381 B
CMake
Raw Permalink Normal View History

2020-05-02 11:38:14 +03:00
# Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT)
cmake_minimum_required(VERSION 3.14)
project(spdlog_example CXX)
2024-12-01 18:22:33 +02:00
if(NOT TARGET spdlog)
# Stand-alone build
2024-12-01 18:29:04 +02:00
find_package(spdlog 2 REQUIRED)
2024-12-01 18:22:33 +02:00
endif()
add_executable(example example.cpp)
2024-12-01 18:22:33 +02:00
target_link_libraries(example PRIVATE spdlog::spdlog $<$<BOOL:${MINGW}>:ws2_32>)