mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 22:58:14 -05:00
22 lines
507 B
CMake
22 lines
507 B
CMake
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
|
|
|
project(CPMExampleDoctest)
|
|
|
|
# ---- Dependencies ----
|
|
|
|
include(../../cmake/CPM.cmake)
|
|
|
|
CPMAddPackage("gh:TheLartians/Fibonacci@2.0")
|
|
CPMAddPackage("gh:onqtam/doctest#2.4.5")
|
|
|
|
# ---- Create binary ----
|
|
|
|
add_executable(CPMExampleDoctest main.cpp)
|
|
target_link_libraries(CPMExampleDoctest fibonacci doctest)
|
|
target_compile_features(CPMExampleDoctest PRIVATE cxx_std_17)
|
|
|
|
# ---- Enable testing ----
|
|
|
|
enable_testing()
|
|
add_test(CPMExampleDoctest CPMExampleDoctest)
|