You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
358 B
16 lines
358 B
3 years ago
|
cmake_minimum_required(VERSION 3.15)
|
||
|
project(Downstream)
|
||
|
|
||
|
# specify the C++ standard
|
||
|
set(CMAKE_CXX_STANDARD 11)
|
||
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||
|
|
||
|
# find MathFunctions
|
||
|
find_package(MathFunctions 3.4.1 EXACT)
|
||
|
|
||
|
# create executable
|
||
|
add_executable(myexe main.cc)
|
||
|
|
||
|
# use MathFunctions library
|
||
|
target_link_libraries(myexe PRIVATE MathFunctions::MathFunctions)
|