Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 945c04af authored by Jussi Lindgren's avatar Jussi Lindgren
Browse files

Build: gusbamp Linux API can now be found by the cmake find script

parent 535dc7ae
Branches
Tags
No related merge requests found
......@@ -38,3 +38,21 @@ IF(WIN32)
MESSAGE(STATUS " FAILED to find gUSBampCAPI")
ENDIF(PATH_GUSBampCAPI)
ENDIF(WIN32)
IF(UNIX)
# To try other versions of the gtec's library, change the number below
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".so.1.14")
FIND_LIBRARY(gUSBAmpLinux_LIBRARY NAMES "gusbampapi" PATHS "/usr/lib" "/usr/local/lib")
IF(gUSBAmpLinux_LIBRARY)
MESSAGE(STATUS " Found GUSBAmpAPILinux...")
MESSAGE(STATUS " [ OK ] Third party lib ${gUSBAmpLinux_LIBRARY}")
ADD_DEFINITIONS(-DTARGET_HAS_ThirdPartyGUSBampCAPI_Linux)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${gUSBAmpLinux_LIBRARY} )
ELSE(gUSBAmpLinux_LIBRARY)
MESSAGE(STATUS " FAILED to find GUSBAmpAPI Linux... ")
MESSAGE(STATUS " : If it should be found, see that 'libgusbampapi.so.1.14' link exists on the fs, with no further nemeric suffixes in the filename.")
MESSAGE(STATUS " : e.g. do 'cd /usr/lib/ ; ln -s libgusbampapi.so.1.14'. See gtec-bcilab/README for details.")
ENDIF(gUSBAmpLinux_LIBRARY)
SET(OV_ThirdPartyGUSBAmp "YES")
ENDIF(UNIX)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment