mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 14:47:30 -05:00
* update more examples to use shorthand syntax * revert google-benchmark as tests require googletest to be installed * update comments * always quote single-arguments * undo accidental deletion
16 lines
361 B
CMake
16 lines
361 B
CMake
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
|
|
|
project(CPMYamlExample)
|
|
|
|
# ---- Dependencies ----
|
|
|
|
include(../../cmake/CPM.cmake)
|
|
|
|
CPMAddPackage("gh:jbeder/yaml-cpp#yaml-cpp-0.6.3@0.6.3")
|
|
|
|
# ---- Executable ----
|
|
|
|
add_executable(CPMYamlExample main.cpp)
|
|
target_compile_features(CPMYamlExample PRIVATE cxx_std_17)
|
|
target_link_libraries(CPMYamlExample yaml-cpp)
|