2022-07-20 11:20:01 +08:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(z1_sdk)
|
2023-02-09 10:32:09 +08:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -pthread")
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED on)
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
2022-11-11 18:17:07 +08:00
|
|
|
set(EIGEN_PATH /usr/include/eigen3)
|
2022-07-20 11:20:01 +08:00
|
|
|
include_directories(
|
2022-12-07 11:17:44 +08:00
|
|
|
include
|
2022-11-11 18:17:07 +08:00
|
|
|
${EIGEN_PATH}
|
2022-07-20 11:20:01 +08:00
|
|
|
)
|
|
|
|
|
2023-01-30 20:51:16 +08:00
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../lib)
|
2022-11-11 18:17:07 +08:00
|
|
|
link_directories(lib)
|
2022-07-20 11:20:01 +08:00
|
|
|
|
2022-12-08 15:04:34 +08:00
|
|
|
add_executable(highcmd_basic examples/highcmd_basic.cpp )
|
|
|
|
target_link_libraries(highcmd_basic Z1_SDK_Linux64)
|
|
|
|
add_executable(highcmd_development examples/highcmd_development.cpp )
|
|
|
|
target_link_libraries(highcmd_development Z1_SDK_Linux64)
|
|
|
|
add_executable(lowcmd_development examples/lowcmd_development.cpp )
|
2023-01-30 20:28:13 +08:00
|
|
|
target_link_libraries(lowcmd_development Z1_SDK_Linux64)
|
2023-03-08 21:02:48 +08:00
|
|
|
add_executable(lowcmd_multirobots examples/lowcmd_multirobots.cpp )
|
|
|
|
target_link_libraries(lowcmd_multirobots Z1_SDK_Linux64)
|
2023-01-30 20:28:13 +08:00
|
|
|
|
|
|
|
add_subdirectory(pybind11)
|
|
|
|
pybind11_add_module(unitree_arm_interface examples_py/arm_python_interface.cpp)
|
|
|
|
target_link_libraries(unitree_arm_interface PRIVATE Z1_SDK_Linux64)
|