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

3 years ago
123456789101112131415161718192021222324252627282930
  1. PROJECT(openvibe-common)
  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 ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
  6. FILE(GLOB_RECURSE SRC_FILES src/*.h src/*.cpp include/*.h include/*.hpp)
  7. INCLUDE_DIRECTORIES(include)
  8. # A headers-only project, the executable is a NOP having some static asserts, not to be installed.
  9. ADD_EXECUTABLE(${PROJECT_NAME} ${SRC_FILES})
  10. INCLUDE("FindThirdPartyBoost")
  11. SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES
  12. VERSION ${PROJECT_VERSION}
  13. SOVERSION ${PROJECT_VERSION_MAJOR}
  14. FOLDER ${KERNEL_FOLDER})
  15. # ---------------------------------
  16. # Target macros
  17. # Defines target operating system, architecture and compiler
  18. # ---------------------------------
  19. SET_BUILD_PLATFORM()
  20. # -----------------------------
  21. # Install files
  22. # -----------------------------
  23. INSTALL(DIRECTORY include/ DESTINATION ${DIST_INCLUDEDIR} FILES_MATCHING PATTERN "*.hpp" PATTERN "*.h" PATTERN "doc" EXCLUDE)