feddbf00b3
Standalone C++/termios serial reader for the WitMotion HWT905 IMU (9600bps active-push protocol), printing accel/gyro/angle to stdout with optional CSV logging.
14 lines
269 B
CMake
14 lines
269 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
project(duru_imu_ws CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
set(CMAKE_BUILD_TYPE Release)
|
|
endif()
|
|
|
|
add_compile_options(-Wall -Wextra)
|
|
|
|
add_executable(imu_reader src/main.cpp)
|