contribAcquisitionServer.cmake 3.51 KB
Newer Older
Jozef Legeny's avatar
all:    
Jozef Legeny committed
1
INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/contrib/common")
Jozef Legeny's avatar
Jozef Legeny committed
2

Jussi Lindgren's avatar
Jussi Lindgren committed
3
SET(ADDITIONAL_PATH "${CMAKE_SOURCE_DIR}/contrib/plugins/server-extensions/external-stimulations/")
Jozef Legeny's avatar
Jozef Legeny committed
4
5
6
INCLUDE_DIRECTORIES(${ADDITIONAL_PATH})
FILE(GLOB_RECURSE additional_source_files ${ADDITIONAL_PATH}/*.cpp ${ADDITIONAL_PATH}/*.h)
SET(source_files "${source_files};${additional_source_files}")
Jozef Legeny's avatar
Jozef Legeny committed
7

nfoy's avatar
nfoy committed
8
9
SET(ADDITIONAL_PATH "${CMAKE_SOURCE_DIR}/contrib/plugins/server-extensions/tcp-tagging/")
INCLUDE_DIRECTORIES(${ADDITIONAL_PATH})
10
FILE(GLOB additional_source_files ${ADDITIONAL_PATH}/*.cpp ${ADDITIONAL_PATH}/*.h)
nfoy's avatar
nfoy committed
11
SET(source_files "${source_files};${additional_source_files}")
Jozef Legeny's avatar
Jozef Legeny committed
12
13
14
15
16
17
18
19

FUNCTION(OV_ADD_CONTRIB_DRIVER DRIVER_PATH)

	SET(ADDITIONAL_PATH ${DRIVER_PATH})
	INCLUDE_DIRECTORIES(${ADDITIONAL_PATH}/src)
	FILE(GLOB_RECURSE additional_source_files ${ADDITIONAL_PATH}/src/*.cpp ${ADDITIONAL_PATH}/src/*.h)
	SET(source_files "${source_files};${additional_source_files}" PARENT_SCOPE)

20
	#MESSAGE(STATUS "DO I EXIST: ${ADDITIONAL_PATH}/share/")
21
	IF(EXISTS "${ADDITIONAL_PATH}/share/")
22
		#MESSAGE(STATUS "I EXIST: ${ADDITIONAL_PATH}/share/")
23
24
25
		INSTALL(DIRECTORY "${ADDITIONAL_PATH}/share/" DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/openvibe/applications/acquisition-server/" PATTERN ".svn" EXCLUDE)
	ENDIF(EXISTS "${ADDITIONAL_PATH}/share/")

Jussi Lindgren's avatar
Jussi Lindgren committed
26
27
28
29
	#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 "${CMAKE_INSTALL_FULL_BINDIR}" PATTERN ".svn" EXCLUDE)
30
	ENDIF(EXISTS "${ADDITIONAL_PATH}/bin/")
Jussi Lindgren's avatar
Jussi Lindgren committed
31

32
33
34
35
36
	# 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})
				
Jozef Legeny's avatar
Jozef Legeny committed
37
38
ENDFUNCTION(OV_ADD_CONTRIB_DRIVER)

39
OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/brainmaster-discovery")
Jussi Lindgren's avatar
Jussi Lindgren committed
40
OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/brainproducts-brainvisionrecorder")
41
OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/cognionics")
42
43
OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/ctfvsm-meg")
OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/field-trip-protocol")
44
OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-gipsa")
45
OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-bcilab")
46
OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-gmobilabplus")
47
OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/gtec-gusbamp")
48
OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/mbt-smarting")
Jussi Lindgren's avatar
Jussi Lindgren committed
49
OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/mitsarEEG202A")
50
51
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")
jfrey's avatar
jfrey committed
52
OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/openbci")
53

54
OV_ADD_CONTRIB_DRIVER("${CMAKE_SOURCE_DIR}/contrib/plugins/server-drivers/eemagine-eego")
55
56
57
58
59
60
61
62
# Bad hack to get one eego source file we need but that we don't want in git
IF(WIN32)
	SET(EEGOAPI_DIR ${OV_CUSTOM_DEPENDENCIES_PATH}/sdk-eemagine-eego/)
	FIND_PATH(PATH_EEGOAPI amplifier.h PATHS ${EEGOAPI_DIR}/eemagine/sdk/)
	IF(PATH_EEGOAPI)
	  SET(source_files "${source_files};${PATH_EEGOAPI}/wrapper.cc")
	ENDIF(PATH_EEGOAPI)
ENDIF(WIN32)
63