cmake_minimum_required(VERSION 3.0) project(z1_sdk) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -O3 -pthread") set(EIGEN_PATH /usr/include/eigen3) include_directories( include ${EIGEN_PATH} ) link_directories(lib) 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 ) target_link_libraries(lowcmd_development Z1_SDK_Linux64)