-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
136 lines (105 loc) · 5.9 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
#cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 2.8)
project(tubex-vnode)
################################################################################
# Looking for Ibex, Tubex
################################################################################
set(IBEX_ROOT "/certis/3/neveub/RECHERCHE/ibex/ibex2-8/ibex-lib/") # Install path of ibex lib
set(TUBEX_ROOT "/certis/3/neveub/RECHERCHE/tubex/tubex2/tubex-lib/")
set(TUBEX_SOLVER_ROOT "/certis/3/neveub/RECHERCHE/tubex/tubex-solve/tubex-solve/")
set(FILIB_LIB "/certis/3/neveub/RECHERCHE/ibex/ibex2-8/ibex-lib/__build__/3rd/filibsrc-3.0.2.2/libprim/.libs/")
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}/make/include"
"${TUBEX_ROOT}/make/src/core"
"${TUBEX_ROOT}/include/tubex"
"${TUBEX_ROOT}/include/tubex-rob"
"${TUBEX_ROOT}/include/lib")
set(TUBEX_SOLVER_INCLUDE_DIR "${TUBEX_SOLVER_ROOT}/include/tubex-solve"
"${TUBEX_SOLVER_ROOT}/make/src" "${TUBEX_SOLVER_ROOT}/src")
set(TUBEX_LIB_DIR "${TUBEX_ROOT}/lib")
set(TUBEX_SOLVER_LIB_DIR "${TUBEX_SOLVER_ROOT}/lib")
include_directories(${IBEX_INCLUDE_DIR})
include_directories(${TUBEX_INCLUDE_DIR})
include_directories(${TUBEX_SOLVER_INCLUDE_DIR})
link_directories("/certis/3/neveub/RECHERCHE/lapack/lapack-3.9.0/build/lib"
"/certis/3/neveub/RECHERCHE/lapack/lapack-3.9.0/build/lib"
"${IBEX_ROOT}/lib"
"${IBEX_ROOT}/lib/ibex/3rd"
"${TUBEX_ROOT}/make/src/core"
"${TUBEX_ROOT}/make/src/robotics"
"${TUBEX_SOLVER_ROOT}/make/src"
"${FILIB_LIB}")
# set(TUBEX_LDFLAGS "tubex" "ibex" "gaol" "gdtoa" "ultim" "prim")
set(TUBEX_LDFLAGS "tubex-solver" "tubex" "ibex" "prim" "gfortran")
###########################################################"
# VNODE VARIABLES
set(VNODE_BUILD_DIR "/certis/3/neveub/RECHERCHE/vnode/")
set(VNODE_LIB_DIR "${VNODE_BUILD_DIR}/vnodelp/lib")
# VNODE INCLUDE/LINK DIRECTORIES
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -frounding-math")
add_definitions(-DFILIB_VNODE)
add_definitions(-DMAXORDER=100)
include_directories(${VNODE_BUILD_DIR}/vnodelp/include)
include_directories(${VNODE_BUILD_DIR}/vnodelp/FADBAD++)
link_directories(${VNODE_LIB_DIR})
set(VNODE_LIBS vnode lapack blas gfortran prim tubex-solve tubex tubex-rob ibex prim)
include_directories(vnode_tubex)
#Set C++ version
set(CMAKE_CXX_STANDARD 11)
#ivp
add_executable(01 examples/IVP_01.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(02 examples/IVP_02.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(03 examples/IVP_03.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(10 examples/IVP_10.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(11 examples/IVP_11.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(12 examples/IVP_12.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(13 examples/IVP_13.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(14 examples/IVP_14.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(19 examples/IVP_19.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(20 examples/IVP_20.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(21 examples/IVP_21.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(12t examples/IVP_12test.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h )
add_executable(test examples/test.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
target_link_libraries(test ${VNODE_LIBS})
target_link_libraries(01 ${VNODE_LIBS})
target_link_libraries(02 ${VNODE_LIBS})
target_link_libraries(03 ${VNODE_LIBS})
target_link_libraries(10 ${VNODE_LIBS})
target_link_libraries(11 ${VNODE_LIBS})
target_link_libraries(12 ${VNODE_LIBS})
target_link_libraries(13 ${VNODE_LIBS})
target_link_libraries(14 ${VNODE_LIBS})
target_link_libraries(19 ${VNODE_LIBS})
target_link_libraries(20 ${VNODE_LIBS})
target_link_libraries(21 ${VNODE_LIBS})
target_link_libraries(12t ${VNODE_LIBS})
#bvp
add_executable(b04 examples/BVP_04.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(b09 examples/BVP_09.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(b15 examples/BVP_15.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(b16 examples/BVP_16.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(b17 examples/BVP_17.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(b18 examples/BVP_18.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(b18test examples/BVP_18_test.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
#add_executable(b18test1 examples/BVP_18_test1.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(bID examples/BVP_ID.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
add_executable(b23 examples/BVP_23.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
target_link_libraries(b04 ${VNODE_LIBS})
target_link_libraries(b09 ${VNODE_LIBS})
target_link_libraries(b15 ${VNODE_LIBS})
target_link_libraries(b16 ${VNODE_LIBS})
target_link_libraries(b17 ${VNODE_LIBS})
target_link_libraries(b18 ${VNODE_LIBS})
target_link_libraries(b18test ${VNODE_LIBS})
#target_link_libraries(b18test1 ${VNODE_LIBS})
target_link_libraries(bID ${VNODE_LIBS})
target_link_libraries(b23 ${VNODE_LIBS})
#bubibex
#add_executable(pendule bubibex/pendule.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
#target_link_libraries(pendule ${VNODE_LIBS})
#add_executable(dub bubibex/dubbins.cpp vnode_tubex/CtcVnodelp.cpp vnode_tubex/CtcVnodelp.h)
#target_link_libraries(dub ${VNODE_LIBS})