|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- if(OV_DISABLE_GTK)
- message(STATUS "Skipping Plugins: Simple Visualization, no GTK")
- return()
- endif(OV_DISABLE_GTK)
-
- project(openvibe-plugins-tactile-bci VERSION ${OPENVIBE_MAJOR_VERSION}.${OPENVIBE_MINOR_VERSION}.${OPENVIBE_PATCH_VERSION})
-
- file(GLOB_RECURSE SRC_FILES src/*.cpp src/*.h src/*.inl)
-
- add_library(${PROJECT_NAME} SHARED ${SRC_FILES})
-
- target_link_libraries(${PROJECT_NAME}
- openvibe
- openvibe-common
- openvibe-toolkit
- openvibe-module-ebml
- openvibe-module-system
- openvibe-visualization-toolkit
- )
-
- set_target_properties(${PROJECT_NAME} PROPERTIES
- VERSION ${PROJECT_VERSION}
- SOVERSION ${PROJECT_VERSION_MAJOR}
- FOLDER ${PLUGINS_FOLDER}
- COMPILE_FLAGS "-DOVP_Exports -DOVP_Shared")
-
- add_definitions(-DTARGET_HAS_ThirdPartyOpenViBEPluginsGlobalDefines)
- add_definitions(-DBOOST_DATE_TIME_NO_LIB)
- if(WIN32)
- add_definitions(-D_WIN32_WINNT=0x0501)
- endif(WIN32)
-
- include("FindOpenViBEModuleTCPTagging")
- include("FindThirdPartyGTK")
- # need boost for UDPStimcodeSender and TactileStimulation
- include("FindThirdPartyBoost")
- include("FindThirdPartyBoost_System")
-
- # -----------------------------
- # Install files
- # -----------------------------
- install(TARGETS ${PROJECT_NAME}
- RUNTIME DESTINATION ${DIST_BINDIR}
- LIBRARY DESTINATION ${DIST_LIBDIR}
- ARCHIVE DESTINATION ${DIST_LIBDIR})
-
- install(DIRECTORY scenarios/ DESTINATION ${DIST_DATADIR}/openvibe/scenarios/tactile-bci)
-
|