2019-04-09 16:15:36 +02:00
|
|
|
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
|
|
|
|
|
|
|
|
|
|
project(CPMTest)
|
|
|
|
|
|
|
|
|
|
# add dependencies
|
|
|
|
|
include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/CPM.cmake)
|
|
|
|
|
|
|
|
|
|
CPMAddPackage(
|
|
|
|
|
NAME LarsParser
|
|
|
|
|
GIT_REPOSITORY https://github.com/TheLartians/Parser.git
|
2019-04-14 14:49:35 +02:00
|
|
|
VERSION 1.7
|
2019-04-09 16:15:36 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# add executable
|
2019-04-16 19:57:05 +02:00
|
|
|
add_executable(cpm-test-simple main.cpp)
|
2019-04-18 12:47:22 +02:00
|
|
|
set_target_properties(cpm-test-simple PROPERTIES CXX_STANDARD 17)
|
2019-04-16 19:57:05 +02:00
|
|
|
target_link_libraries(cpm-test-simple LarsParser)
|
2019-04-09 16:15:36 +02:00
|
|
|
|
|
|
|
|
# tests
|
|
|
|
|
enable_testing()
|
2019-04-16 19:57:05 +02:00
|
|
|
add_test(cpm-test-simple cpm-test-simple)
|