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.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. project(openvibe-module-labstreamlayer)
  2. SET(PROJECT_VERSION_MAJOR ${OV_GLOBAL_VERSION_MAJOR})
  3. SET(PROJECT_VERSION_MINOR ${OV_GLOBAL_VERSION_MINOR})
  4. SET(PROJECT_VERSION_PATCH ${OV_GLOBAL_VERSION_PATCH})
  5. SET(PROJECT_VERSION ${OV_GLOBAL_VERSION_STRING})
  6. SET(SRC_FILES
  7. src/Utils.cpp
  8. include/labstreamlayer/Utils.hpp)
  9. ADD_LIBRARY(${PROJECT_NAME} STATIC ${SRC_FILES})
  10. TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME}
  11. PRIVATE include/labstreamlayer
  12. PUBLIC include)
  13. SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES
  14. VERSION ${PROJECT_VERSION}
  15. SOVERSION ${PROJECT_VERSION_MAJOR}
  16. FOLDER ${MODULES_FOLDER})
  17. if(UNIX)
  18. SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-fPIC")
  19. ENDIF(UNIX)
  20. INCLUDE("FindOpenViBE")
  21. INCLUDE("FindOpenViBEModuleSystem")
  22. # OpenViBE Third Party
  23. INCLUDE("FindThirdPartyLSL")
  24. # ---------------------------------
  25. # Target macros
  26. # Defines target operating system, architecture and compiler
  27. # ---------------------------------
  28. SET_BUILD_PLATFORM()
  29. # -----------------------------
  30. # Install files
  31. # -----------------------------
  32. INSTALL(TARGETS ${PROJECT_NAME}
  33. RUNTIME DESTINATION ${DIST_BINDIR}
  34. LIBRARY DESTINATION ${DIST_LIBDIR}
  35. ARCHIVE DESTINATION ${DIST_LIBDIR})
  36. INSTALL(DIRECTORY include/ DESTINATION ${DIST_INCLUDEDIR} FILES_MATCHING PATTERN "*.hpp" PATTERN "*.h")