|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- project(openvibe-module-labstreamlayer)
-
- SET(PROJECT_VERSION_MAJOR ${OV_GLOBAL_VERSION_MAJOR})
- SET(PROJECT_VERSION_MINOR ${OV_GLOBAL_VERSION_MINOR})
- SET(PROJECT_VERSION_PATCH ${OV_GLOBAL_VERSION_PATCH})
- SET(PROJECT_VERSION ${OV_GLOBAL_VERSION_STRING})
-
- SET(SRC_FILES
- src/Utils.cpp
- include/labstreamlayer/Utils.hpp)
-
- ADD_LIBRARY(${PROJECT_NAME} STATIC ${SRC_FILES})
-
- TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME}
- PRIVATE include/labstreamlayer
- PUBLIC include)
-
- SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES
- VERSION ${PROJECT_VERSION}
- SOVERSION ${PROJECT_VERSION_MAJOR}
- FOLDER ${MODULES_FOLDER})
-
- if(UNIX)
- SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-fPIC")
- ENDIF(UNIX)
-
-
- INCLUDE("FindOpenViBE")
- INCLUDE("FindOpenViBEModuleSystem")
- # OpenViBE Third Party
- INCLUDE("FindThirdPartyLSL")
-
- # ---------------------------------
- # Target macros
- # Defines target operating system, architecture and compiler
- # ---------------------------------
- SET_BUILD_PLATFORM()
-
- # -----------------------------
- # Install files
- # -----------------------------
- INSTALL(TARGETS ${PROJECT_NAME}
- RUNTIME DESTINATION ${DIST_BINDIR}
- LIBRARY DESTINATION ${DIST_LIBDIR}
- ARCHIVE DESTINATION ${DIST_LIBDIR})
-
- INSTALL(DIRECTORY include/ DESTINATION ${DIST_INCLUDEDIR} FILES_MATCHING PATTERN "*.hpp" PATTERN "*.h")
|