2019-10-10 20:13:10 +02:00
|
|
|
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
|
|
|
|
|
|
|
|
|
project(CPMExampleCatch2)
|
|
|
|
|
|
|
|
|
|
# ---- Options ----
|
|
|
|
|
|
|
|
|
|
option(ENABLE_TEST_COVERAGE "Enable test coverage" OFF)
|
|
|
|
|
|
|
|
|
|
# ---- Dependencies ----
|
|
|
|
|
|
|
|
|
|
include(@CPM_PATH@/CPM.cmake)
|
|
|
|
|
|
|
|
|
|
CPMAddPackage(
|
|
|
|
|
NAME fibonacci
|
|
|
|
|
GIT_REPOSITORY https://github.com/TheLartians/Fibonacci.git
|
2019-10-24 15:42:25 +02:00
|
|
|
VERSION @FIBONACCI_VERSION@
|
2020-06-04 14:22:57 +02:00
|
|
|
@FIBONACCI_PACKAGE_ARGS@
|
2019-10-10 20:13:10 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# ---- Create binary ----
|
|
|
|
|
|
|
|
|
|
add_executable(CPMExampleCatch2 main.cpp)
|
2019-10-24 15:42:25 +02:00
|
|
|
target_link_libraries(CPMExampleCatch2 fibonacci)
|
2019-10-10 20:13:10 +02:00
|
|
|
set_target_properties(CPMExampleCatch2 PROPERTIES CXX_STANDARD 17 COMPILE_FLAGS "-Wall -pedantic -Wextra -Werror")
|