-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt~
48 lines (38 loc) · 1.2 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
cmake_minimum_required(VERSION 2.6)
project(gwam-simulator)
set(MY_CODES_DIRS /home/nilxwam/workspace/gwam-simulator)
set(SAM_LIBS constants samlibs)
## libbarrett
find_package(Barrett REQUIRED)
include_directories(${BARRETT_INCLUDE_DIRS} ${MY_CODES_DIRS}/include)
link_directories(${BARRETT_LIBRARY_DIRS} ${MY_CODES_DIRS}/builds)
add_definitions(${BARRETT_DEFINITIONS})
add_definitions(-o2 -g)
## curses
find_package(Curses REQUIRED)
include_directories(${CURSES_INCLUDE_DIR})
#add_library(QuadTS ${MY_CODES_DIRS}/samLibs/QuadTS.cpp)
add_library(constants ${MY_CODES_DIRS}/samLibs/constants.cpp)
add_library(samlibs ${MY_CODES_DIRS}/samLibs/samlibs.cpp)
#add_library(Dynamics ${MY_CODES_DIRS}/samLibs/Dynamics.cpp)
function(add_programs)
foreach (prog ${ARGV})
add_executable(${prog} src/${prog}.cpp)
target_link_libraries(${prog} ${BARRETT_LIBRARIES} ${SAM_LIBS})
endforeach()
endfunction()
add_programs(
nilu_slidingmode
nilu_sliding_compensator_on
nilu_optimal_sliding_mode
eigen_test
ncurses_example
test_optimal_sliding
test_differentiator
another_controller
playTenisLog_nilu
test_tact_finger
DMP_sliding_mode
sliding_mode_disturbance_observer
)
target_link_libraries(ncurses_example ${CURSES_LIBRARIES})