mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 14:47:30 -05:00
* update example versions * update doctest * update lua * update google benchmark * update catch2 * update readme to match updated dependencies Co-authored-by: Lars Melchior <lars@Larss-Laptop.local>
22 lines
524 B
CMake
22 lines
524 B
CMake
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
|
|
|
project(CPMExampleCatch2)
|
|
|
|
# ---- Dependencies ----
|
|
|
|
include(../../cmake/CPM.cmake)
|
|
|
|
CPMAddPackage("gh:cpm-cmake/testpack-fibonacci@2.0")
|
|
CPMAddPackage("gh:catchorg/Catch2@3.2.1")
|
|
|
|
# ---- Create binary ----
|
|
|
|
add_executable(CPMExampleCatch2 main.cpp)
|
|
target_link_libraries(CPMExampleCatch2 fibonacci Catch2::Catch2WithMain)
|
|
target_compile_features(CPMExampleCatch2 PRIVATE cxx_std_17)
|
|
|
|
# ---- Enable testing ----
|
|
|
|
enable_testing()
|
|
add_test(CPMExampleCatch2 CPMExampleCatch2)
|