initial commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
# project(interface)
|
||||
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
add_definitions(-w) # warning ignore
|
||||
add_compile_options(-fPIC)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
include_directories(
|
||||
./robot
|
||||
./user_command
|
||||
)
|
||||
# file(GLOB_RECURSE SIMULATOIN_SRC "robot/simulation/*.hpp")
|
||||
file(GLOB_RECURSE USER_COMMAND_SRC "user_command/*.cpp")
|
||||
|
||||
set(GAMEPAD_SDK_PATH "${THIRD_PARTY}/gamepad")
|
||||
include_directories(${GAMEPAD_SDK_PATH}/include)
|
||||
file(GLOB_RECURSE GAMEPAD_SDK_SRC "${GAMEPAD_SDK_PATH}/src/*.cpp")
|
||||
|
||||
add_library(interface STATIC ${USER_COMMAND_SRC} ${GAMEPAD_SDK_SRC})
|
||||
target_link_libraries(interface PUBLIC -lpthread -lm -lrt -ldl -lstdc++)
|
||||
|
||||
|
||||
|
||||
# add_library(user_command SHARED ${USER_COMMAND_SRC})
|
||||
# target_link_libraries(user_command gamepad_sdk)
|
||||
|
||||
# add_executable(test ./test.cpp)
|
||||
# target_link_libraries(test simulation gamepad_sdk)
|
||||
# add_subdirectory(simulation)
|
||||
Reference in New Issue
Block a user