Guest User

Untitled

a guest
Jul 10th, 2017
90
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cmake_minimum_required(VERSION 2.8)
  2. project(test-oes)
  3.  
  4. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread -g -O0")
  5.  
  6. if(NOT ONBOARDSDK_SOURCE)
  7.     set(ONBOARDSDK_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/lib/Onboard-SDK")
  8. endif()
  9.  
  10. include_directories(${ONBOARDSDK_SOURCE}/osdk-core/inc)
  11. include_directories(${ONBOARDSDK_SOURCE}/osdk-wrapper/inc)
  12. include_directories(${ONBOARDSDK_SOURCE}/platform/linux/inc)
  13. include_directories(inc)
  14.  
  15. FILE(GLOB SOURCE_FILES inc/*.h src/*.cpp)
  16. add_executable(${PROJECT_NAME} ${SOURCE_FILES})
  17.  
  18. target_link_libraries(${PROJECT_NAME} djiosdk-core djiosdk-platform djiosdk-wrapper)
  19. install(TARGETS ${PROJECT_NAME} DESTINATION bin)
RAW Paste Data