-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
61 lines (49 loc) · 966 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
52
53
54
55
56
57
58
59
60
61
cmake_minimum_required(VERSION 3.1)
project(data_driven_mpc)
add_compile_options(-std=c++17)
find_package(catkin REQUIRED COMPONENTS
message_generation
roscpp
rospy
rosbag
nmpc_ddp
)
# Eigen
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})
# Torch
message("-- LIBTORCH_PATH: ${LIBTORCH_PATH}")
list(APPEND CMAKE_PREFIX_PATH ${LIBTORCH_PATH})
find_package(Torch REQUIRED)
add_message_files(
FILES
Dataset.msg
StandardScaler.msg
)
add_service_files(
FILES
RunSimOnce.srv
GenerateDataset.srv
)
generate_messages(
DEPENDENCIES
)
catkin_package(
CATKIN_DEPENDS
roscpp
rospy
rosbag
nmpc_ddp
DEPENDS EIGEN3
INCLUDE_DIRS include
LIBRARIES DDMPC
)
add_subdirectory(src)
add_subdirectory(samples)
if(CATKIN_ENABLE_TESTING)
add_subdirectory(tests)
endif()
OPTION(INSTALL_DOCUMENTATION "Generate and install the documentation" OFF)
if(INSTALL_DOCUMENTATION)
add_subdirectory(doc)
endif()