#------------------------------------------------------------------- # This file is part of the CMake build system for OGRE # (Object-oriented Graphics Rendering Engine) # For the latest info, see http://www.ogre3d.org/ # # The contents of this file are placed in the public domain. Feel # free to make use of it in any way you like. #------------------------------------------------------------------- # - Try to find EMOTIV # Once done, this will define # # EMOTIV_FOUND - system has EMOTIV # EMOTIV_INCLUDE_DIRS - the EMOTIV include directories # EMOTIV_LIBRARIES - link these to use EMOTIV if (WIN32) include(FindPkgMacros) findpkg_begin(EMOTIV) # Get path, convert backslashes as ${ENV_${var}} getenv_path(EMOTIV_HOME) # construct search paths set(EMOTIV_PREFIX_PATH ${EMOTIV_HOME} $ENV{SCOL_DEPENDENCIES_PATH}/emotiv ) create_search_paths(EMOTIV) # redo search if prefix path changed clear_if_changed(EMOTIV_PREFIX_PATH EMOTIV_LIBRARY_FWK EMOTIV_LIBRARY_REL EMOTIV_LIBRARY_DBG EMOTIV_INCLUDE_DIR ) set(EMOTIV_LIBRARY_NAMES edk) get_debug_names(EMOTIV_LIBRARY_NAMES) if(WIN32 AND (WIN64 OR (CMAKE_SIZEOF_VOID_P EQUAL 8))) set(EMOTIV_PATH_SUFFIXES win64 Release Debug) elseif (WIN32) set(EMOTIV_PATH_SUFFIXES win32 Release Debug) endif () findpkg_framework(EMOTIV) #message(alert ${EMOTIV_LIB_SEARCH_PATH}) find_path(EMOTIV_INCLUDE_DIR NAMES Iedk.h HINTS ${EMOTIV_INC_SEARCH_PATH}) find_library(EMOTIV_LIBRARY_REL NAMES ${EMOTIV_LIBRARY_NAMES} HINTS ${EMOTIV_LIB_SEARCH_PATH} PATH_SUFFIXES ${EMOTIV_PATH_SUFFIXES}) find_library(EMOTIV_LIBRARY_DBG NAMES ${EMOTIV_LIBRARY_NAMES_DBG} HINTS ${EMOTIV_LIB_SEARCH_PATH} PATH_SUFFIXES ${EMOTIV_PATH_SUFFIXES}) find_file(EMOTIV_BINARY_REL NAMES "edk.dll" HINTS ${EMOTIV_BIN_SEARCH_PATH} PATH_SUFFIXES ${EMOTIV_PATH_SUFFIXES}) find_file(EMOTIV_BINARY_DBG NAMES "edk.dll" HINTS ${EMOTIV_BIN_SEARCH_PATH} PATH_SUFFIXES ${EMOTIV_PATH_SUFFIXES}) make_library_set(EMOTIV_LIBRARY) findpkg_finish(EMOTIV) endif (WIN32)