mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 14:47:30 -05:00
* Add missing packageproject options * Fix typos with codespell * Update test/style/CMakeLists.txt Co-authored-by: Lars Melchior <TheLartians@users.noreply.github.com> * fix-cmake-format --------- Co-authored-by: Lars Melchior <TheLartians@users.noreply.github.com>
30 lines
702 B
CMake
30 lines
702 B
CMake
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
|
|
|
project(CPMSpdlogExample)
|
|
|
|
# ---- Dependencies ----
|
|
|
|
include(../../cmake/CPM.cmake)
|
|
|
|
CPMAddPackage("gh:gabime/spdlog@1.8.2")
|
|
|
|
# spdlog uses fmt and bundles that dependency. If you want to use fmt in your project as well, you
|
|
# can let spdlog reuse fmt from CPM.cmake like this:
|
|
#
|
|
# cmake-format: off
|
|
#
|
|
# CPMAddPackage("gh:fmtlib/fmt#7.1.3")
|
|
# CPMAddPackage(
|
|
# GITHUB_REPOSITORY gabime/spdlog
|
|
# VERSION 1.8.2
|
|
# OPTIONS "SPDLOG_FMT_EXTERNAL 1"
|
|
# )
|
|
#
|
|
# cmake-format: on
|
|
|
|
# ---- Executable ----
|
|
|
|
add_executable(CPMSpdlogExample main.cpp)
|
|
target_compile_features(CPMSpdlogExample PRIVATE cxx_std_17)
|
|
target_link_libraries(CPMSpdlogExample spdlog)
|