Files
CPM.cmake/examples/simple/CMakeLists.txt

22 lines
497 B
CMake
Raw Normal View History

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
VERSION 1.7
2019-04-09 16:15:36 +02:00
)
# add executable
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)
target_link_libraries(cpm-test-simple LarsParser)
2019-04-09 16:15:36 +02:00
# tests
enable_testing()
add_test(cpm-test-simple cpm-test-simple)