You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 1.2KB

1234567891011121314151617181920212223242526272829303132333435
  1. project(openvibe-visualization-toolkit)
  2. MESSAGE(STATUS "Now building ${PROJECT_NAME} ${PROJECT_VERSION} (${OV_PROJECT_BRANCH}~${OV_PROJECT_COMMITHASH})" )
  3. OV_ADD_THIS_TO_PROJECT_LIST()
  4. file(GLOB_RECURSE SRC_FILES src/*.cpp src/*.h src/*.hpp include/*.h include/*.hpp)
  5. include("FindSourceRCProperties")
  6. include_directories(${openvibe-visualization-toolkit_SOURCE_DIR}/include/)
  7. include_directories(${openvibe-visualization-toolkit_SOURCE_DIR}/include/visualization-toolkit)
  8. add_library(${PROJECT_NAME} SHARED ${SRC_FILES})
  9. set_target_properties(${PROJECT_NAME} PROPERTIES
  10. VERSION ${PROJECT_VERSION}
  11. SOVERSION ${PROJECT_VERSION_MAJOR}
  12. COMPILE_FLAGS "-DOVVIZ_Exports -DOVVIZ_Shared")
  13. include("AddOpenViBESDKComponents")
  14. include("FindThirdPartyGTK")
  15. # ---------------------------------
  16. # Target macros
  17. # Defines target operating system, architecture and compiler
  18. # ---------------------------------
  19. SET_BUILD_PLATFORM()
  20. # -----------------------------
  21. # Install files
  22. # -----------------------------
  23. install(TARGETS ${PROJECT_NAME}
  24. RUNTIME DESTINATION ${DIST_BINDIR}
  25. LIBRARY DESTINATION ${DIST_LIBDIR}
  26. ARCHIVE DESTINATION ${DIST_LIBDIR})
  27. install(DIRECTORY include/ DESTINATION ${DIST_INCLUDEDIR} FILES_MATCHING PATTERN "*.h")