cmake-find/FindVeerProtocols.cmake
2021-06-24 11:52:12 +03:00

26 lines
672 B
CMake

if(NOT VEER_PROTOCOLS_IS_EXTERNAL_PROJECT)
set(VEER_PROTOCOLS_PREFIX
""
CACHE PATH "The path to the prefix of an veer protocols installation")
find_path(
VEER_PROTOCOLS_INCLUDE_DIRS
NAMES veer/common/ports.hpp
PATHS ${VEER_PROTOCOLS_PREFIX}/include)
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()