|
12345678910111213141516171819202122232425262728293031323334353637383940 |
- # /*
- # * FindThirdPartyLiveAmpAPI.cmake
- # *
- # * Copyright (c) 2016, Brain Products GmbH. All rights reserved.
- # * -- Rights transferred to Inria, contract signed ...
- # *
- # */
-
- # ---------------------------------
- # Finds LiveAmp library
- # Adds library to target
- # Adds include path
- # ---------------------------------
-
- GET_PROPERTY(OV_PRINTED GLOBAL PROPERTY OV_TRIED_FindThirdPartyLiveAmpAPI)
-
- IF(WIN32)
- FIND_PATH(PATH_LiveAmpAPI Amplifier_LIB.h PATHS ${LIST_DEPENDENCIES_PATH} PATH_SUFFIXES sdk_brainproducts_liveamp)
- IF(PATH_LiveAmpAPI)
- OV_PRINT(OV_PRINTED " Found Brain Products LiveAmp API...")
- INCLUDE_DIRECTORIES(${PATH_LiveAmpAPI})
-
- FIND_LIBRARY(LIB_LiveAmpAPI LiveAmpLib2 PATHS ${PATH_LiveAmpAPI} )
- IF(LIB_LiveAmpAPI)
- OV_PRINT(OV_PRINTED " [ OK ] lib ${LIB_LiveAmpAPI}")
- TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIB_LiveAmpAPI} )
- ELSE(LIB_LiveAmpAPI)
- OV_PRINT(OV_PRINTED " [FAILED] lib LiveAmp")
- ENDIF(LIB_LiveAmpAPI)
-
- # Copy the DLL file at install
- INSTALL(PROGRAMS "${PATH_LiveAmpAPI}/LiveAmpLib2.dll" DESTINATION ${DIST_BINDIR})
-
- ADD_DEFINITIONS(-DTARGET_HAS_ThirdPartyLiveAmpAPI)
- ELSE(PATH_LiveAmpAPI)
- OV_PRINT(OV_PRINTED " FAILED to find Brain Products LiveAmp API (optional)")
- ENDIF(PATH_LiveAmpAPI)
- ENDIF(WIN32)
-
- SET_PROPERTY(GLOBAL PROPERTY OV_TRIED_FindThirdPartyLiveAmpAPI "Yes")
|