2020-05-02 16:38:14 +08:00
|
|
|
# Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
2018-02-12 03:45:56 +08:00
|
|
|
|
2023-12-23 22:28:36 +08:00
|
|
|
cmake_minimum_required(VERSION 3.14)
|
2023-10-01 22:42:44 +08:00
|
|
|
project(spdlog_example CXX)
|
2018-02-12 03:45:56 +08:00
|
|
|
|
2019-05-29 05:04:36 +08:00
|
|
|
if(NOT TARGET spdlog)
|
2020-05-02 16:42:08 +08:00
|
|
|
# Stand-alone build
|
|
|
|
find_package(spdlog REQUIRED)
|
2018-02-12 03:45:56 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_executable(example example.cpp)
|
2023-12-24 18:28:02 +08:00
|
|
|
target_link_libraries(example PRIVATE spdlog::spdlog $<$<BOOL:${MINGW}>:ws2_32>)
|