INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/contrib/common") SET(ADDITIONAL_PATH "${CMAKE_SOURCE_DIR}/contrib/plugins/server-extensions/external-stimulations/") INCLUDE_DIRECTORIES(${ADDITIONAL_PATH}) FILE(GLOB_RECURSE ADDITIONAL_SRC_FILES ${ADDITIONAL_PATH}/*.cpp ${ADDITIONAL_PATH}/*.h) SET(SRC_FILES "${SRC_FILES};${ADDITIONAL_SRC_FILES}") SET(ADDITIONAL_PATH "${CMAKE_SOURCE_DIR}/contrib/plugins/server-extensions/tcp-tagging/") INCLUDE_DIRECTORIES(${ADDITIONAL_PATH}) FILE(GLOB ADDITIONAL_SRC_FILES ${ADDITIONAL_PATH}/*.cpp ${ADDITIONAL_PATH}/*.h) SET(SRC_FILES "${SRC_FILES};${ADDITIONAL_SRC_FILES}") FUNCTION(OV_ADD_CONTRIB_DRIVER DRIVER_PATH) SET(ADDITIONAL_PATH ${DRIVER_PATH}) INCLUDE_DIRECTORIES(${ADDITIONAL_PATH}/src) FILE(GLOB_RECURSE ADDITIONAL_SRC_FILES ${ADDITIONAL_PATH}/src/*.cpp ${ADDITIONAL_PATH}/src/*.h) SET(SRC_FILES "${SRC_FILES};${ADDITIONAL_SRC_FILES}" PARENT_SCOPE) #MESSAGE(STATUS "DO I EXIST: ${ADDITIONAL_PATH}/share/") IF(EXISTS "${ADDITIONAL_PATH}/share/") #MESSAGE(STATUS "I EXIST: ${ADDITIONAL_PATH}/share/") INSTALL(DIRECTORY "${ADDITIONAL_PATH}/share/" DESTINATION "${DIST_DATADIR}/openvibe/applications/acquisition-server/") ENDIF(EXISTS "${ADDITIONAL_PATH}/share/") #MESSAGE(STATUS "DO I EXIST: ${ADDITIONAL_PATH}/bin/") IF(EXISTS "${ADDITIONAL_PATH}/bin/") #MESSAGE(STATUS "I EXIST: ${ADDITIONAL_PATH}/bin/") INSTALL(DIRECTORY "${ADDITIONAL_PATH}/bin/" DESTINATION "${DIST_BINDIR}") ENDIF(EXISTS "${ADDITIONAL_PATH}/bin/") # Add the dir to be parsed for documentation later. GET_PROPERTY(OV_TMP GLOBAL PROPERTY OV_PROP_CURRENT_PROJECTS) SET(OV_TMP "${OV_TMP};${ADDITIONAL_PATH}") SET_PROPERTY(GLOBAL PROPERTY OV_PROP_CURRENT_PROJECTS ${OV_TMP}) ENDFUNCTION(OV_ADD_CONTRIB_DRIVER) OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/brainmaster-discovery") OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/brainproducts-brainvisionrecorder") OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/cognionics") OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/ctfvsm-meg") OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/encephalan") OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-gipsa/common") OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-gipsa/gusbamp") OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-gipsa/unicorn") OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-bcilab") OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-gmobilabplus") OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-gusbamp") OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-gnautilus") OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/mbt-smarting") OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/mitsarEEG202A") OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/openal-mono16bit-audiocapture") OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/openeeg-modulareeg") OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/openbci") IF(WIN32 AND "${PLATFORM_TARGET}" STREQUAL "x64") MESSAGE(STATUS " SKIPPED fieldtrip on x64") ELSE() OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/field-trip-protocol") ENDIF() OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/eemagine-eego") # The block is used to compile wrapper.cc into Acquisition Server which is not in OV git. # nb. we need to add the wrapper.cc file before the cmake add_executable() directive, and at that # point FindThirdPartyEemagineEEGO has not yet been run on some builds (e.g. win command line build), # nor can we do the adding at that point; it'd be too late. On the other hand, the find script # cannot be called before the executable has been added. if (WIN32) FIND_PATH(PATH_EEGOAPI amplifier.h PATHS ${LIST_DEPENDENCIES_PATH} PATH_SUFFIXES sdk_eemagine_eego/eemagine/sdk/) else() FIND_PATH(PATH_EEGOAPI amplifier.h PATHS /usr/include PATH_SUFFIXES eemagine/sdk/) endif(WIN32) IF(PATH_EEGOAPI) SET(SRC_FILES "${SRC_FILES};${PATH_EEGOAPI}/wrapper.cc") ENDIF(PATH_EEGOAPI) IF(OV_COMPILE_TESTS) ADD_SUBDIRECTORY("../../../contrib/plugins/server-extensions/tcp-tagging/test" "./test") ENDIF(OV_COMPILE_TESTS)