signalview
This commit is contained in:
parent
5924855742
commit
9f85f524e8
@ -4,11 +4,11 @@ if(NOT SIGNALVIEW_IS_EXTERNAL_PROJECT)
|
|||||||
set(SIGNALVIEW_LIBRARY_DIR "" CACHE PATH "The path to the library of an libsignalview installation")
|
set(SIGNALVIEW_LIBRARY_DIR "" CACHE PATH "The path to the library of an libsignalview installation")
|
||||||
|
|
||||||
set(_search_paths "")
|
set(_search_paths "")
|
||||||
if(EXISTS SIGNALVIEW_INCLUDE_DIR)
|
if(SIGNALVIEW_INLCUDE_DIR AND EXISTS ${SIGNALVIEW_INCLUDE_DIR})
|
||||||
list(APPEND _search_paths ${SIGNALVIEW_INCLUDE_DIR})
|
list(APPEND _search_paths ${SIGNALVIEW_INCLUDE_DIR})
|
||||||
endif()
|
endif()
|
||||||
if(EXISTS SIGNALVIEW_PREFIX)
|
if(SIGNALVIEW_PREFIX AND EXISTS ${SIGNALVIEW_PREFIX})
|
||||||
list(APPEND _search_paths ${SIGNALVIEW_PREFIX}/include)
|
list(APPEND _search_paths "${SIGNALVIEW_PREFIX}/include")
|
||||||
endif()
|
endif()
|
||||||
find_path(
|
find_path(
|
||||||
SIGNALVIEW_INCLUDE_DIRS
|
SIGNALVIEW_INCLUDE_DIRS
|
||||||
@ -16,15 +16,15 @@ if(NOT SIGNALVIEW_IS_EXTERNAL_PROJECT)
|
|||||||
PATHS ${_search_paths})
|
PATHS ${_search_paths})
|
||||||
|
|
||||||
set(_search_paths "")
|
set(_search_paths "")
|
||||||
if(EXISTS SIGNALVIEW_LIBRARY_DIR)
|
if(SIGNALVIEW_LIBRARY_DIR AND EXISTS ${SIGNALVIEW_LIBRARY_DIR})
|
||||||
list(APPEND _search_paths ${SIGNALVIEW_LIBRARY_DIR})
|
list(APPEND _search_paths ${SIGNALVIEW_LIBRARY_DIR})
|
||||||
endif()
|
endif()
|
||||||
if(EXISTS SIGNALVIEW_PREFIX)
|
if(SIGNALVIEW_PREFIX AND EXISTS ${SIGNALVIEW_PREFIX})
|
||||||
list(APPEND _search_paths ${SIGNALVIEW_PREFIX}/lib)
|
list(APPEND _search_paths "${SIGNALVIEW_PREFIX}/lib")
|
||||||
endif()
|
endif()
|
||||||
find_library(
|
find_library(
|
||||||
SIGNALVIEW_LIBRARIES
|
SIGNALVIEW_LIBRARIES
|
||||||
NAMES fsp
|
NAMES signalview
|
||||||
PATHS ${_search_paths})
|
PATHS ${_search_paths})
|
||||||
unset(_search_paths)
|
unset(_search_paths)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user