z1_sdk/CMakeLists.txt

27 lines
883 B
CMake
Raw Normal View History

2022-07-20 11:20:01 +08:00
cmake_minimum_required(VERSION 3.0)
project(z1_sdk)
# set(EIGEN_PATH /usr/include/eigen3)
include_directories(
include
2022-09-13 19:52:44 +08:00
unitreeArm
2022-07-20 11:20:01 +08:00
# ${EIGEN_PATH}
)
link_directories(lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../lib) # SHARED:CMAKE_LIBRARY_OUTPUT_DIRECTORY STATIC:CMAKE_ARCHIVE_OUTPUT_DIRECTORY
add_library(Z1_SDK_Linux64 SHARED ${ADD_SRC_LIST})
2022-07-20 11:20:01 +08:00
add_executable(example_lowCmd_send examples/example_lowCmd_send.cpp )
2022-07-20 11:20:01 +08:00
target_link_libraries(example_lowCmd_send Z1_SDK_Linux64)
2022-09-13 19:52:44 +08:00
add_executable(example_keyboard_send examples/example_keyboard_send.cpp)
target_link_libraries(example_keyboard_send Z1_SDK_Linux64)
2022-07-20 11:20:01 +08:00
2022-09-13 19:52:44 +08:00
add_executable(bigDemo examples/bigDemo.cpp)
target_link_libraries(bigDemo Z1_SDK_Linux64)
2022-07-20 11:20:01 +08:00
add_executable(getJointGripperState examples/getJointGripperState.cpp )
target_link_libraries(getJointGripperState Z1_SDK_Linux64)