spdlog/example/CMakeLists.txt

13 lines
383 B
CMake
Raw Normal View History

2020-05-02 16:38:14 +08: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-02 00:22:33 +08:00
if(NOT TARGET spdlog)
# Stand-alone build
2024-12-02 00:24:40 +08:00
find_package(spdlog-2 2 REQUIRED)
2024-12-02 00:22:33 +08:00
endif()
add_executable(example example.cpp)
2024-12-02 00:22:33 +08:00
target_link_libraries(example PRIVATE spdlog::spdlog $<$<BOOL:${MINGW}>:ws2_32>)