mirror of https://github.com/gabime/spdlog.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
381 B
CMake
13 lines
381 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 2 REQUIRED)
|
|
endif()
|
|
|
|
add_executable(example example.cpp)
|
|
target_link_libraries(example PRIVATE spdlog::spdlog $<$<BOOL:${MINGW}>:ws2_32>)
|