Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Openvibe Group
extras
Commits
945c04af
Commit
945c04af
authored
Apr 01, 2016
by
Jussi Lindgren
Browse files
Build: gusbamp Linux API can now be found by the cmake find script
parent
535dc7ae
Changes
1
Show whitespace changes
Inline
Side-by-side
cmake-modules/FindThirdPartyGUSBampCAPI.cmake
View file @
945c04af
...
@@ -38,3 +38,21 @@ IF(WIN32)
...
@@ -38,3 +38,21 @@ IF(WIN32)
MESSAGE
(
STATUS
" FAILED to find gUSBampCAPI"
)
MESSAGE
(
STATUS
" FAILED to find gUSBampCAPI"
)
ENDIF
(
PATH_GUSBampCAPI
)
ENDIF
(
PATH_GUSBampCAPI
)
ENDIF
(
WIN32
)
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
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment