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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. if(OV_DISABLE_GTK)
  2. message(STATUS "Skipping Plugins: Simple Visualization, no GTK")
  3. return()
  4. endif(OV_DISABLE_GTK)
  5. project(openvibe-plugins-tactile-bci VERSION ${OPENVIBE_MAJOR_VERSION}.${OPENVIBE_MINOR_VERSION}.${OPENVIBE_PATCH_VERSION})
  6. file(GLOB_RECURSE SRC_FILES src/*.cpp src/*.h src/*.inl)
  7. add_library(${PROJECT_NAME} SHARED ${SRC_FILES})
  8. target_link_libraries(${PROJECT_NAME}
  9. openvibe
  10. openvibe-common
  11. openvibe-toolkit
  12. openvibe-module-ebml
  13. openvibe-module-system
  14. openvibe-visualization-toolkit
  15. )
  16. set_target_properties(${PROJECT_NAME} PROPERTIES
  17. VERSION ${PROJECT_VERSION}
  18. SOVERSION ${PROJECT_VERSION_MAJOR}
  19. FOLDER ${PLUGINS_FOLDER}
  20. COMPILE_FLAGS "-DOVP_Exports -DOVP_Shared")
  21. add_definitions(-DTARGET_HAS_ThirdPartyOpenViBEPluginsGlobalDefines)
  22. add_definitions(-DBOOST_DATE_TIME_NO_LIB)
  23. if(WIN32)
  24. add_definitions(-D_WIN32_WINNT=0x0501)
  25. endif(WIN32)
  26. include("FindOpenViBEModuleTCPTagging")
  27. include("FindThirdPartyGTK")
  28. # need boost for UDPStimcodeSender and TactileStimulation
  29. include("FindThirdPartyBoost")
  30. # -----------------------------
  31. # Install files
  32. # -----------------------------
  33. install(TARGETS ${PROJECT_NAME}
  34. RUNTIME DESTINATION ${DIST_BINDIR}
  35. LIBRARY DESTINATION ${DIST_LIBDIR}
  36. ARCHIVE DESTINATION ${DIST_LIBDIR})
  37. install(DIRECTORY scenarios/ DESTINATION ${DIST_DATADIR}/openvibe/scenarios/tactile-bci)