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.

contribAcquisitionServer.cmake 4.4KB

3 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/contrib/common")
  2. SET(ADDITIONAL_PATH "${CMAKE_SOURCE_DIR}/contrib/plugins/server-extensions/external-stimulations/")
  3. INCLUDE_DIRECTORIES(${ADDITIONAL_PATH})
  4. FILE(GLOB_RECURSE ADDITIONAL_SRC_FILES ${ADDITIONAL_PATH}/*.cpp ${ADDITIONAL_PATH}/*.h)
  5. SET(SRC_FILES "${SRC_FILES};${ADDITIONAL_SRC_FILES}")
  6. SET(ADDITIONAL_PATH "${CMAKE_SOURCE_DIR}/contrib/plugins/server-extensions/tcp-tagging/")
  7. INCLUDE_DIRECTORIES(${ADDITIONAL_PATH})
  8. FILE(GLOB ADDITIONAL_SRC_FILES ${ADDITIONAL_PATH}/*.cpp ${ADDITIONAL_PATH}/*.h)
  9. SET(SRC_FILES "${SRC_FILES};${ADDITIONAL_SRC_FILES}")
  10. FUNCTION(OV_ADD_CONTRIB_DRIVER DRIVER_PATH)
  11. SET(ADDITIONAL_PATH ${DRIVER_PATH})
  12. INCLUDE_DIRECTORIES(${ADDITIONAL_PATH}/src)
  13. FILE(GLOB_RECURSE ADDITIONAL_SRC_FILES ${ADDITIONAL_PATH}/src/*.cpp ${ADDITIONAL_PATH}/src/*.h)
  14. SET(SRC_FILES "${SRC_FILES};${ADDITIONAL_SRC_FILES}" PARENT_SCOPE)
  15. #MESSAGE(STATUS "DO I EXIST: ${ADDITIONAL_PATH}/share/")
  16. IF(EXISTS "${ADDITIONAL_PATH}/share/")
  17. #MESSAGE(STATUS "I EXIST: ${ADDITIONAL_PATH}/share/")
  18. INSTALL(DIRECTORY "${ADDITIONAL_PATH}/share/" DESTINATION "${DIST_DATADIR}/openvibe/applications/acquisition-server/")
  19. ENDIF(EXISTS "${ADDITIONAL_PATH}/share/")
  20. #MESSAGE(STATUS "DO I EXIST: ${ADDITIONAL_PATH}/bin/")
  21. IF(EXISTS "${ADDITIONAL_PATH}/bin/")
  22. #MESSAGE(STATUS "I EXIST: ${ADDITIONAL_PATH}/bin/")
  23. INSTALL(DIRECTORY "${ADDITIONAL_PATH}/bin/" DESTINATION "${DIST_BINDIR}")
  24. ENDIF(EXISTS "${ADDITIONAL_PATH}/bin/")
  25. # Add the dir to be parsed for documentation later.
  26. GET_PROPERTY(OV_TMP GLOBAL PROPERTY OV_PROP_CURRENT_PROJECTS)
  27. SET(OV_TMP "${OV_TMP};${ADDITIONAL_PATH}")
  28. SET_PROPERTY(GLOBAL PROPERTY OV_PROP_CURRENT_PROJECTS ${OV_TMP})
  29. ENDFUNCTION(OV_ADD_CONTRIB_DRIVER)
  30. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/brainmaster-discovery")
  31. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/brainproducts-brainvisionrecorder")
  32. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/cognionics")
  33. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/ctfvsm-meg")
  34. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/encephalan")
  35. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-gipsa/common")
  36. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-gipsa/gusbamp")
  37. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-gipsa/unicorn")
  38. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-bcilab")
  39. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-gmobilabplus")
  40. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-gusbamp")
  41. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-gnautilus")
  42. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/mbt-smarting")
  43. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/mitsarEEG202A")
  44. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/openal-mono16bit-audiocapture")
  45. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/openeeg-modulareeg")
  46. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/openbci")
  47. IF(WIN32 AND "${PLATFORM_TARGET}" STREQUAL "x64")
  48. MESSAGE(STATUS " SKIPPED fieldtrip on x64")
  49. ELSE()
  50. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/field-trip-protocol")
  51. ENDIF()
  52. OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/eemagine-eego")
  53. # The block is used to compile wrapper.cc into Acquisition Server which is not in OV git.
  54. # nb. we need to add the wrapper.cc file before the cmake add_executable() directive, and at that
  55. # point FindThirdPartyEemagineEEGO has not yet been run on some builds (e.g. win command line build),
  56. # nor can we do the adding at that point; it'd be too late. On the other hand, the find script
  57. # cannot be called before the executable has been added.
  58. if (WIN32)
  59. FIND_PATH(PATH_EEGOAPI amplifier.h PATHS ${LIST_DEPENDENCIES_PATH} PATH_SUFFIXES sdk_eemagine_eego/eemagine/sdk/)
  60. else()
  61. FIND_PATH(PATH_EEGOAPI amplifier.h PATHS /usr/include PATH_SUFFIXES eemagine/sdk/)
  62. endif(WIN32)
  63. IF(PATH_EEGOAPI)
  64. SET(SRC_FILES "${SRC_FILES};${PATH_EEGOAPI}/wrapper.cc")
  65. ENDIF(PATH_EEGOAPI)
  66. IF(OV_COMPILE_TESTS)
  67. ADD_SUBDIRECTORY("../../../contrib/plugins/server-extensions/tcp-tagging/test" "./test")
  68. ENDIF(OV_COMPILE_TESTS)