-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
76 lines (68 loc) · 1.99 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
cmake_minimum_required(VERSION 3.5)
#######################
project(hardware_interfaces)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED On)
set(CMAKE_CXX_EXTENSIONS Off)
find_package(Eigen3 3.4 REQUIRED)
find_package(pybind11 REQUIRED)
find_package(Boost REQUIRED COMPONENTS
system
thread
program_options
)
find_library(YAMLLib yaml-cpp HINTS /usr/local/lib)
find_library(RUT Utilities HINTS ${CMAKE_INSTALL_PREFIX}/lib/RobotUtilities)
find_library(FORCE_CONTROLLERS FORCE_CONTROLLERS HINTS ${CMAKE_INSTALL_PREFIX}/lib/)
include_directories(
include/
${EIGEN3_INCLUDE_DIRS}
)
add_library(HI_COMMON SHARED
src/types.cpp
)
# hardware to build
add_subdirectory(hardware/ati_netft)
add_subdirectory(hardware/coinft)
add_subdirectory(hardware/realsense)
add_subdirectory(hardware/gopro)
add_subdirectory(hardware/robotiq_ft_modbus)
add_subdirectory(hardware/ur_rtde)
add_subdirectory(hardware/wsg_gripper)
# workcell to build
# include every "include" directory under /hardware/*
file(GLOB HARDWARE_INCLUDE_DIRS "hardware/*/include")
include_directories(${HARDWARE_INCLUDE_DIRS})
add_subdirectory(workcell/table_top_manip)
# Application to build
file(GLOB WORKCELL_INCLUDE_DIRS "workcell/*/include")
include_directories(${WORKCELL_INCLUDE_DIRS})
add_subdirectory(applications/force_control_demo)
add_subdirectory(applications/ft_calibration)
add_subdirectory(applications/manipulation_data_collection)
# install common
install(DIRECTORY include/
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/
)
install(TARGETS HI_COMMON
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/
)
# Test executable
find_package(fmt REQUIRED)
find_package(spdlog REQUIRED)
add_executable(test_hardware_interfaces
test/main.cc
)
target_include_directories(test_hardware_interfaces PRIVATE
hardware/ati_netft/include/
hardware/realsense/include/
hardware/ur_rtde/include/
hardware/robotiq_ft_modbus/include/
)
target_link_libraries(test_hardware_interfaces
${Boost_LIBRARIES}
${RUT}
WSG_GRIPPER
COIN_FT
# spdlog::spdlog
)