|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- 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")
-
- # -----------------------------
- # 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/thn_bci/scenarios)
- install(DIRECTORY arduino/ DESTINATION ${DIST_DATADIR}/openvibe/thn_bci/arduino)
|