2020-05-02 11:38:14 +03:00
|
|
|
# Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
2018-02-11 20:45:56 +01:00
|
|
|
|
2023-12-23 16:28:36 +02:00
|
|
|
cmake_minimum_required(VERSION 3.14)
|
2023-10-01 17:42:44 +03:00
|
|
|
project(spdlog_example CXX)
|
2018-02-11 20:45:56 +01:00
|
|
|
|
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()
|
2018-02-11 20:45:56 +01:00
|
|
|
|
|
|
|
|
add_executable(example example.cpp)
|
2024-12-01 18:22:33 +02:00
|
|
|
target_link_libraries(example PRIVATE spdlog::spdlog $<$<BOOL:${MINGW}>:ws2_32>)
|