cmake_minimum_required(VERSION 3.0) project(z1_sdk) # set(EIGEN_PATH /usr/include/eigen3) include_directories( include unitreeArm # ${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}) add_executable(example_lowCmd_send examples/example_lowCmd_send.cpp ) target_link_libraries(example_lowCmd_send Z1_SDK_Linux64) add_executable(example_keyboard_send examples/example_keyboard_send.cpp) target_link_libraries(example_keyboard_send Z1_SDK_Linux64) add_executable(bigDemo examples/bigDemo.cpp) target_link_libraries(bigDemo Z1_SDK_Linux64) add_executable(getJointGripperState examples/getJointGripperState.cpp ) target_link_libraries(getJointGripperState Z1_SDK_Linux64)