-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCMakeLists.txt
37 lines (30 loc) · 924 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
cmake_minimum_required(VERSION 3.0.2)
project(LeoCore2Firmware NONE)
set(HFRAMEWORK_PATH "/opt/hFramework" CACHE FILEPATH
"Path to the hFramework SDK")
set(BOARD_TYPE "core2")
set(BOARD_VERSION "1.0.0")
include(${HFRAMEWORK_PATH}/hFramework.cmake)
add_compile_definitions(ROS_PLATFORM_HFRAMEWORK)
if (RELEASE)
optimization(3)
endif()
include_directories(
include/
lib/diff_drive_lib/include
lib/rosserial_lib
lib/sensors/
)
add_hexecutable(core2_firmware
main.cpp
src/parameters.cpp
src/motor_controller.cpp
src/imu_receiver.cpp
lib/diff_drive_lib/src/diff_drive_controller.cpp
lib/diff_drive_lib/src/mecanum_controller.cpp
lib/diff_drive_lib/src/pid_regulator.cpp
lib/diff_drive_lib/src/robot_controller.cpp
lib/diff_drive_lib/src/wheel_controller.cpp
lib/rosserial_lib/time.cpp
lib/rosserial_lib/duration.cpp
lib/sensors/MPU9250/MPU9250.cpp)