1234567891011121314151617181920212223242526272829303132333435 |
- project(openvibe-visualization-toolkit)
- MESSAGE(STATUS "Now building ${PROJECT_NAME} ${PROJECT_VERSION} (${OV_PROJECT_BRANCH}~${OV_PROJECT_COMMITHASH})" )
-
- OV_ADD_THIS_TO_PROJECT_LIST()
-
- file(GLOB_RECURSE SRC_FILES src/*.cpp src/*.h src/*.hpp include/*.h include/*.hpp)
- include("FindSourceRCProperties")
-
- include_directories(${openvibe-visualization-toolkit_SOURCE_DIR}/include/)
- include_directories(${openvibe-visualization-toolkit_SOURCE_DIR}/include/visualization-toolkit)
-
- add_library(${PROJECT_NAME} SHARED ${SRC_FILES})
- set_target_properties(${PROJECT_NAME} PROPERTIES
- VERSION ${PROJECT_VERSION}
- SOVERSION ${PROJECT_VERSION_MAJOR}
- COMPILE_FLAGS "-DOVVIZ_Exports -DOVVIZ_Shared")
-
- include("AddOpenViBESDKComponents")
- include("FindThirdPartyGTK")
-
- # ---------------------------------
- # 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 "*.h")
|