-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·66 lines (57 loc) · 1.45 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# ========================================
# Author: shivanandvp
# Email : [email protected]
# ========================================
# Set the minimum required cmake version
cmake_minimum_required(VERSION 3.13)
# Set the project name
project(
nlmpBVP
VERSION 1.0.0
LANGUAGES CXX
)
# create a list of files "execSources" to include in the target executable
file(
GLOB_RECURSE execSources
src/*.cpp
)
# create a list of files "execHeaders" to include in the target executable
file(
GLOB_RECURSE execHeaders
include/*.hpp # add the header files
)
# Add a target executable file to run, and specify the source files to use, to generate it
add_executable(
test_nlmpBVP
${execSources}
${execHeaders}
)
target_include_directories(
test_nlmpBVP
PUBLIC
include
PRIVATE
/usr/include/eigen3
/usr/include/eigen3/unsupported
)
# Set the directories to look for, for external libraries
target_link_directories(
test_nlmpBVP
PRIVATE
/usr/lib
)
# Specify the external libraries to use, in order
target_link_libraries(
test_nlmpBVP
PRIVATE
libgmpxx.so
libgmp.so
libmpfr.so
)
# Set the output directory
set_target_properties(
test_nlmpBVP
PROPERTIES
CMAKE_RUNTIME_OUTPUT_DIRECTORY
../bin
)