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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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
  29. include("FindThirdPartyBoost")
  30. include("FindThirdPartyBoost_System")
  31. # -----------------------------
  32. # Install files
  33. # -----------------------------
  34. install(TARGETS ${PROJECT_NAME}
  35. RUNTIME DESTINATION ${DIST_BINDIR}
  36. LIBRARY DESTINATION ${DIST_LIBDIR}
  37. ARCHIVE DESTINATION ${DIST_LIBDIR})
  38. install(DIRECTORY scenarios/ DESTINATION ${DIST_DATADIR}/openvibe/scenarios/tactile-bci)