mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 14:47:30 -05:00
16 lines
368 B
CMake
16 lines
368 B
CMake
|
|
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
|
||
|
|
|
||
|
|
# add dependencies
|
||
|
|
include(../../cmake/CPM.cmake)
|
||
|
|
|
||
|
|
CPMAddPackage(
|
||
|
|
NAME LarsParser
|
||
|
|
GIT_REPOSITORY https://github.com/TheLartians/Parser.git
|
||
|
|
VERSION 1.7
|
||
|
|
)
|
||
|
|
|
||
|
|
# add executable
|
||
|
|
add_executable(calculator main.cpp)
|
||
|
|
set_target_properties(calculator PROPERTIES CXX_STANDARD 17)
|
||
|
|
target_link_libraries(calculator LarsParser)
|