Commit 11141840 authored by Laurent Bonnet's avatar Laurent Bonnet

openvibe-application/acquisition-server:

* ovasCDriverNeuroskyMindset.cpp : Mindset SDK v2.1 compatible. Blink detection enabled with dedicated token.

cmake-modules:
* FindThirdPartyThinkGearAPI.cmake : look for SDK v2.1 or higher. Does not compile the driver if an inferior version is the only one detected.

git-svn-id: svn://scm.gforge.inria.fr/svn/openvibe@2836 c330d7e9-fc0c-0410-a5b3-fd85c6f5aa8f
parent fa2c2dfe
......@@ -4,7 +4,12 @@
# Adds include path
# ---------------------------------
IF(WIN32)
FIND_PATH(PATH_ThinkGearAPI thinkgear.h PATHS "C:/Program Files/MindSet Development Tools/tgcd/win32" "C:/Program Files/MindSet Development Tools/ThinkGear Communications Driver/win32" "C:/Program Files (x86)/MindSet Development Tools/ThinkGear Communications Driver/win32" $ENV{OpenViBE_dependencies})
FIND_PATH(PATH_ThinkGearAPI thinkgear.h PATHS "C:/Program Files/MindSet Development Tools/tgcd/win32" $ENV{OpenViBE_dependencies})
IF(PATH_ThinkGearAPI)
MESSAGE(STATUS " Found a ThinkGear API, but the version seems inferior to 2.1.")
ENDIF(PATH_ThinkGearAPI)
FIND_PATH(PATH_ThinkGearAPI thinkgear.h PATHS "C:/Program Files/MindSet Development Tools/ThinkGear Communications Driver/win32" "C:/Program Files (x86)/MindSet Development Tools/ThinkGear Communications Driver/win32" $ENV{OpenViBE_dependencies})
IF(PATH_ThinkGearAPI)
MESSAGE(STATUS " Found ThinkGear API...")
INCLUDE_DIRECTORIES(${PATH_ThinkGearAPI})
......@@ -26,9 +31,9 @@ IF(WIN32)
ARGS -E copy "${PATH_ThinkGearAPI}/thinkgear.dll" "${PROJECT_SOURCE_DIR}/bin"
COMMENT " ---> Copying dll file ${PATH_ThinkGearAPI}/thinkgear.dll for the Neurosky MindSet driver."
VERBATIM)
ELSE(PATH_ThinkGearAPI)
MESSAGE(STATUS " FAILED to find ThinkGear API - cmake looked in 'C:/Program Files/MindSet Development Tools/tgcd/win32', 'C:/Program Files/MindSet Development Tools/ThinkGear Communications Driver/win32' and 'C:/Program Files (x86)/MindSet Development Tools/ThinkGear Communications Driver/win32'")
MESSAGE(STATUS " FAILED to find a valid ThinkGear API - cmake looked in 'C:/Program Files/MindSet Development Tools/ThinkGear Communications Driver/win32' and 'C:/Program Files (x86)/MindSet Development Tools/ThinkGear Communications Driver/win32'")
ENDIF(PATH_ThinkGearAPI)
ENDIF(WIN32)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment