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.
robomaster-sdk/CMakeLists.txt

49 lines
836 B
CMake

2 years ago
cmake_minimum_required(VERSION 3.15)
project (
RoboMasterSDK
VERSION 2.0.0
2 years ago
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/modules/gimbal.c
src/modules/blaster.c
src/modules/camera.c
src/connection.c
2 years ago
src/robomaster.c
src/robo.c
2 years ago
)
target_include_directories(robomaster
PRIVATE
2 years ago
src
PUBLIC
include
2 years ago
)
include(FetchContent)
FetchContent_Declare (
SDL2
GIT_REPOSITORY https://github.com/libsdl-org/SDL
GIT_TAG release-2.0.20
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(SDL2)
2 years ago
add_executable(robomasterapp
src/sdl.c
)
target_link_libraries(robomasterapp
robomaster
SDL2-static
)