mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 06:37:43 -05:00
* use semicolon as empty command and add test * remove platform specific test coverage * only run actions for pushes and prs into master (avoid duplication) * remove cache test as it's already part of the test suite * update version * test cache reuse
23 lines
483 B
CMake
23 lines
483 B
CMake
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
|
|
|
project(CPMExampleCXXOpts)
|
|
|
|
# ---- Dependencies ----
|
|
|
|
include(../../cmake/CPM.cmake)
|
|
|
|
CPMAddPackage(
|
|
NAME cxxopts
|
|
GITHUB_REPOSITORY jarro2783/cxxopts
|
|
VERSION 2.2.0
|
|
OPTIONS
|
|
"CXXOPTS_BUILD_EXAMPLES Off"
|
|
"CXXOPTS_BUILD_TESTS Off"
|
|
)
|
|
|
|
# ---- Create binary ----
|
|
|
|
add_executable(CPMExampleCXXOpts main.cpp)
|
|
target_link_libraries(CPMExampleCXXOpts cxxopts)
|
|
set_target_properties(CPMExampleCXXOpts PROPERTIES CXX_STANDARD 17)
|