2021-06-24 08:52:12 +00:00
|
|
|
if(NOT VEER_PROTOCOLS_IS_EXTERNAL_PROJECT)
|
2021-06-29 05:14:16 +00:00
|
|
|
set(VEER_PROTOCOLS_PREFIX "" CACHE PATH "The path to the prefix of an veer protocols installation")
|
|
|
|
set(VEER_PROTOCOLS_INCLUDE_DIR "" CACHE PATH "The path to the headers of an libfsp installation")
|
2021-06-24 08:52:12 +00:00
|
|
|
|
2021-06-29 05:14:16 +00:00
|
|
|
set(_search_paths "")
|
|
|
|
if(EXISTS VEER_PROTOCOLS_INCLUDE_DIR)
|
|
|
|
list(APPEND _search_paths ${VEER_PROTOCOLS_INCLUDE_DIR})
|
|
|
|
endif()
|
|
|
|
if(EXISTS VEER_PROTOCOLS_PREFIX)
|
|
|
|
list(APPEND _search_paths ${VEER_PROTOCOLS_PREFIX}/include)
|
|
|
|
endif()
|
2021-06-24 08:52:12 +00:00
|
|
|
find_path(
|
|
|
|
VEER_PROTOCOLS_INCLUDE_DIRS
|
|
|
|
NAMES veer/common/ports.hpp
|
2021-06-29 05:14:16 +00:00
|
|
|
PATHS ${_search_paths})
|
2021-06-29 09:50:35 +00:00
|
|
|
unset(_search_paths)
|
2021-06-24 08:52:12 +00:00
|
|
|
|
|
|
|
if(VEER_PROTOCOLS_INCLUDE_DIRS)
|
|
|
|
set(VEER_PROTOCOLS_FOUND TRUE)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(VEER_PROTOCOLS_FOUND)
|
|
|
|
if(NOT VEER_PROTOCOLS_FIND_QUIETLY)
|
|
|
|
message(STATUS "Found veer protocols")
|
|
|
|
endif()
|
|
|
|
set(HAVE_VEER_PROTOCOLS 1)
|
|
|
|
elseif(VEER_PROTOCOLS_FOUND)
|
|
|
|
if(VEER_PROTOCOLS_FIND_REQUIRED)
|
|
|
|
message(FATAL_ERROR "Could not find veer protocols")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|