-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
181 lines (142 loc) · 7.37 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
cmake_minimum_required(VERSION 3.0)
project(tubex-capd)
################################################################################
# Looking for Ibex, Tubex
################################################################################
set(IBEX_ROOT "/home/neveub/tubex/ibex-lib/install") # Install path of ibex lib
set(TUBEX_ROOT "/home/neveub/tubex/tubex-lib/")
set(TUBEX_SOLVER_ROOT "/home/neveub/tubex/tubex-solve/")
set(IBEX_LIB_DIR "${IBEX_ROOT}/lib"
"${IBEX_ROOT}/lib/ibex/3rd")
set(IBEX_INCLUDE_DIR "${IBEX_ROOT}/include"
"${IBEX_ROOT}/include/ibex"
"${IBEX_ROOT}/include/ibex/3rd"
"${IBEX_ROOT}/include/lib"
"${IBEX_ROOT}/include/lib/ibex/3rd")
set(TUBEX_INCLUDE_DIR "${TUBEX_ROOT}/build/include"
"${TUBEX_ROOT}/build/src/core"
"${TUBEX_ROOT}/include/tubex"
"${TUBEX_ROOT}/include/lib")
set(TUBEX_SOLVER_INCLUDE_DIR "${TUBEX_SOLVER_ROOT}/src"
"${TUBEX_SOLVER_ROOT}/build/src")
set(TUBEX_LIB_DIR "${TUBEX_ROOT}/build/src/core")
#"${TUBEX_ROOT}/build/src/robotics")
set(TUBEX_SOLVER_LIB_DIR "${TUBEX_SOLVER_ROOT}/build/src")
include_directories(${IBEX_INCLUDE_DIR})
include_directories(${TUBEX_INCLUDE_DIR})
include_directories(${TUBEX_SOLVER_INCLUDE_DIR})
link_directories(${IBEX_LIB_DIR})
link_directories(${TUBEX_LIB_DIR})
link_directories(${TUBEX_SOLVER_LIB_DIR})
###########################################################"
set(CAPD_DIR "/home/neveub/capd/capd-capdDynSys-5.0.59")
set(CAPD_LIB_DIR "/home/neveub/capd/capd-capdDynSys-5.0.59/install/lib")
include_directories(${CAPD_DIR}/install/include/)
link_directories(${CAPD_LIB_DIR})
# CAPD LIBRARY BINARY
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -frounding-math -D__USE_FILIB__")
set(CAPD_LIBS tubex-solve tubex capd ibex prim)
include_directories(capd_tubex)
add_library(Capdtubex STATIC capd_tubex/tubex_CtcCapd.h capd_tubex/tubex_CtcCapd.cpp capd_tubex/tubex_TubeVectorODE.h capd_tubex/tubex_TubeVectorODE.cpp capd_tubex/tubex_capd2tubex.h capd_tubex/tubex_capd2tubex.cpp)
target_link_libraries(Capdtubex ${CAPD_LIBS})
add_executable(main examples/main.cpp)
target_link_libraries(main Capdtubex ${CAPD_LIBS} )
add_executable(ivp01 examples/ivp01.cpp)
target_link_libraries(ivp01 Capdtubex ${CAPD_LIBS} )
add_executable(ivp02 examples/ivp02.cpp)
target_link_libraries(ivp02 Capdtubex ${CAPD_LIBS} )
add_executable(ivp03 examples/ivp03.cpp)
target_link_libraries(ivp03 Capdtubex ${CAPD_LIBS} )
add_executable(integrodiff examples/integrodiff.cpp)
target_link_libraries(integrodiff Capdtubex ${CAPD_LIBS} )
add_executable(ivp02-solver examples/ivp02-solver.cpp)
target_link_libraries(ivp02-solver Capdtubex ${CAPD_LIBS} )
add_executable(ivp12 examples/ivp12.cpp)
target_link_libraries(ivp12 Capdtubex ${CAPD_LIBS} )
add_executable(ivp13 examples/ivp13.cpp)
target_link_libraries(ivp13 Capdtubex ${CAPD_LIBS} )
add_executable(ivp21 examples/ivp21.cpp)
target_link_libraries(ivp21 Capdtubex ${CAPD_LIBS} )
add_executable(bvp09 examples/bvp09.cpp)
target_link_libraries(bvp09 Capdtubex ${CAPD_LIBS} )
add_executable(bvp04 examples/bvp04.cpp)
target_link_libraries(bvp04 Capdtubex ${CAPD_LIBS} )
add_executable(bvp15 examples/bvp15.cpp)
target_link_libraries(bvp15 Capdtubex ${CAPD_LIBS} )
add_executable(bvp01a examples/bvpsolve/bvp01a.cpp)
target_link_libraries(bvp01a Capdtubex ${CAPD_LIBS} )
add_executable(bvp01b examples/bvpsolve/bvp01b.cpp)
target_link_libraries(bvp01b Capdtubex ${CAPD_LIBS} )
add_executable(bvp01c examples/bvpsolve/bvp01c.cpp)
target_link_libraries(bvp01c Capdtubex ${CAPD_LIBS} )
add_executable(bvp01d examples/bvpsolve/bvp01d.cpp)
target_link_libraries(bvp01d Capdtubex ${CAPD_LIBS} )
add_executable(bvp02a examples/bvpsolve/bvp02a.cpp)
target_link_libraries(bvp02a Capdtubex ${CAPD_LIBS} )
add_executable(bvp02b examples/bvpsolve/bvp02b.cpp)
target_link_libraries(bvp02b Capdtubex ${CAPD_LIBS} )
add_executable(bvp02c examples/bvpsolve/bvp02c.cpp)
target_link_libraries(bvp02c Capdtubex ${CAPD_LIBS} )
add_executable(bvp02d examples/bvpsolve/bvp02d.cpp)
target_link_libraries(bvp02d Capdtubex ${CAPD_LIBS} )
add_executable(bvp04a examples/bvpsolve/bvp04a.cpp)
target_link_libraries(bvp04a Capdtubex ${CAPD_LIBS} )
add_executable(bvp04b examples/bvpsolve/bvp04b.cpp)
target_link_libraries(bvp04b Capdtubex ${CAPD_LIBS} )
add_executable(bvp04c examples/bvpsolve/bvp04c.cpp)
target_link_libraries(bvp04c Capdtubex ${CAPD_LIBS} )
add_executable(bvp08a examples/bvpsolve/bvp08a.cpp)
target_link_libraries(bvp08a Capdtubex ${CAPD_LIBS} )
add_executable(bvp08b examples/bvpsolve/bvp08b.cpp)
target_link_libraries(bvp08b Capdtubex ${CAPD_LIBS} )
add_executable(bvp08c examples/bvpsolve/bvp08c.cpp)
target_link_libraries(bvp08c Capdtubex ${CAPD_LIBS} )
add_executable(bvp09a examples/bvpsolve/bvp09a.cpp)
target_link_libraries(bvp09a Capdtubex ${CAPD_LIBS} )
add_executable(bvp09b examples/bvpsolve/bvp09b.cpp)
target_link_libraries(bvp09b Capdtubex ${CAPD_LIBS} )
add_executable(bvp09c examples/bvpsolve/bvp09c.cpp)
target_link_libraries(bvp09c Capdtubex ${CAPD_LIBS} )
add_executable(bvp22a examples/bvpsolve/bvp22a.cpp)
target_link_libraries(bvp22a Capdtubex ${CAPD_LIBS} )
add_executable(bvp22b examples/bvpsolve/bvp22b.cpp)
target_link_libraries(bvp22b Capdtubex ${CAPD_LIBS} )
add_executable(bvp22c examples/bvpsolve/bvp22c.cpp)
target_link_libraries(bvp22c Capdtubex ${CAPD_LIBS} )
add_executable(bvp25a examples/bvpsolve/bvp25a.cpp)
target_link_libraries(bvp25a Capdtubex ${CAPD_LIBS} )
add_executable(bvp25b examples/bvpsolve/bvp25b.cpp)
target_link_libraries(bvp25b Capdtubex ${CAPD_LIBS} )
add_executable(bvp25c examples/bvpsolve/bvp25c.cpp)
target_link_libraries(bvp25c Capdtubex ${CAPD_LIBS} )
add_executable(bvp26a examples/bvpsolve/bvp26a.cpp)
target_link_libraries(bvp26a Capdtubex ${CAPD_LIBS} )
add_executable(bvp26b examples/bvpsolve/bvp26b.cpp)
target_link_libraries(bvp26b Capdtubex ${CAPD_LIBS} )
add_executable(bvp26c examples/bvpsolve/bvp26c.cpp)
target_link_libraries(bvp26c Capdtubex ${CAPD_LIBS} )
add_executable(bvp27a examples/bvpsolve/bvp27a.cpp)
target_link_libraries(bvp27a Capdtubex ${CAPD_LIBS} )
add_executable(bvp27b examples/bvpsolve/bvp27b.cpp)
target_link_libraries(bvp27b Capdtubex ${CAPD_LIBS} )
add_executable(bvp32a examples/bvpsolve/bvp32a.cpp)
target_link_libraries(bvp32a Capdtubex ${CAPD_LIBS} )
add_executable(bvp32b examples/bvpsolve/bvp32b.cpp)
target_link_libraries(bvp32b Capdtubex ${CAPD_LIBS} )
add_executable(bvp34a examples/bvpsolve/bvp34a.cpp)
target_link_libraries(bvp34a Capdtubex ${CAPD_LIBS} )
add_executable(bvp34b examples/bvpsolve/bvp34b.cpp)
target_link_libraries(bvp34b Capdtubex ${CAPD_LIBS} )
add_executable(bvp34c examples/bvpsolve/bvp34c.cpp)
target_link_libraries(bvp34c Capdtubex ${CAPD_LIBS} )
add_executable(bvp34d examples/bvpsolve/bvp34d.cpp)
target_link_libraries(bvp34d Capdtubex ${CAPD_LIBS} )
add_executable(bvp35a examples/bvpsolve/bvp35a.cpp)
target_link_libraries(bvp35a Capdtubex ${CAPD_LIBS} )
add_executable(bvp35b examples/bvpsolve/bvp35b.cpp)
target_link_libraries(bvp35b Capdtubex ${CAPD_LIBS} )
add_executable(bvp35c examples/bvpsolve/bvp35c.cpp)
target_link_libraries(bvp35c Capdtubex ${CAPD_LIBS} )
add_executable(bvp40 examples/bvpsolve/bvp40.cpp)
target_link_libraries(bvp40 Capdtubex ${CAPD_LIBS} )
###########################################################