mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
12 lines
378 B
CMake
12 lines
378 B
CMake
# 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)
|
|
|
|
if(NOT TARGET spdlog)
|
|
# Stand-alone build
|
|
find_package(spdlog REQUIRED)
|
|
endif()
|
|
|
|
add_executable(example example.cpp)
|
|
target_link_libraries(example PRIVATE spdlog::spdlog $<$<BOOL:${MINGW}>:ws2_32>) |