-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
executable file
·51 lines (40 loc) · 922 Bytes
/
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
cmake_minimum_required(VERSION 2.8.3)
project(mav_linear_mpc)
find_package(catkin_simple REQUIRED)
catkin_simple(ALL_DEPS_REQUIRED)
set(CMAKE_BUILD_TYPE Release)
if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" AND NOT APPLE)
add_definitions(-fPIC)
endif()
include_directories(lib)
#############
# LIBRARIES #
#############
cs_add_library(mav_linear_mpc
src/linear_mpc.cpp
src/steady_state_calculation.cpp
)
cs_add_library(cvxgen_solver
lib/ldl.c
lib/solver.c
lib/matrix_support.c
lib/util.c
lib/variables_definition.c
)
target_link_libraries(mav_linear_mpc cvxgen_solver)
############
# BINARIES #
############
cs_add_executable(mav_linear_mpc_node
src/linear_mpc_node.cpp
)
target_link_libraries(mav_linear_mpc_node ${PROJECT_NAME})
cs_add_executable(flip_node
src/flip_node.cpp
)
target_link_libraries(flip_node ${PROJECT_NAME})
##########
# EXPORT #
##########
cs_install()
cs_export()