aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: da5fc52ae47e2b9877bb808f5a74ffd4e76673cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cmake_minimum_required(VERSION 3.10)
project(WheelCtrl)

# Set the output directory for the build executables.
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
add_compile_options(-g -w)

# Find the required libraries
find_library(LCM_LIBRARY lcm lib)

# Add the executable serial
add_executable(serial serial.c path/path_ctrl_t.c)
target_link_libraries(serial ${LCM_LIBRARY})

# Add the executable udp2lcm
add_executable(udp2lcm udp2lcm.c path/path_ctrl_t.c)
target_link_libraries(udp2lcm ${LCM_LIBRARY})