mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 06:37:43 -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
362 B
CMake
16 lines
362 B
CMake
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
|
|
|
project(CPMExampleCXXOpts)
|
|
|
|
# ---- Dependencies ----
|
|
|
|
include(../../cmake/CPM.cmake)
|
|
|
|
CPMAddPackage("gh:jarro2783/cxxopts@2.2.0")
|
|
|
|
# ---- Create binary ----
|
|
|
|
add_executable(CPMExampleCXXOpts main.cpp)
|
|
target_link_libraries(CPMExampleCXXOpts cxxopts)
|
|
target_compile_features(CPMExampleCXXOpts PRIVATE cxx_std_17)
|