You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
546 B
CMake
36 lines
546 B
CMake
cmake_minimum_required(VERSION 3.15)
|
|
|
|
project (
|
|
RoboMasterSDK
|
|
VERSION 1.0.0
|
|
LANGUAGES C
|
|
)
|
|
|
|
set_property(GLOBAL PROPERTY C_STANDARD 17)
|
|
set_property(GLOBAL PROPERTY CXX_STANDARD 17)
|
|
|
|
add_compile_options(-Wall)
|
|
|
|
add_library(robomaster
|
|
src/message.c
|
|
src/modules/sdk.c
|
|
src/modules/chassis.c
|
|
src/connection.c
|
|
src/robomaster.c
|
|
)
|
|
|
|
target_include_directories(robomaster
|
|
PRIVATE
|
|
src
|
|
PUBLIC
|
|
include
|
|
)
|
|
|
|
add_executable(robomastersh
|
|
src/robomastersh.c
|
|
)
|
|
|
|
target_link_libraries(robomastersh
|
|
robomaster
|
|
)
|