cmake-find/FindIonobase.cmake

30 lines
858 B
CMake
Raw Normal View History

2021-06-24 09:03:01 +00:00
if(NOT LIBIONOBASE_IS_EXTERNAL_PROJECT)
2021-06-24 08:51:52 +00:00
set(LIBIONOBASE_PREFIX "" CACHE PATH "The path to the prefix of an libionobase installation")
2021-06-22 23:11:10 +00:00
find_path(
LIBIONOBASE_INCLUDE_DIRS
2021-06-24 09:03:01 +00:00
NAMES ionobase/interchfor.hpp
2021-06-22 23:11:10 +00:00
PATHS ${LIBIONOBASE_PREFIX}/include)
find_library(
LIBIONOBASE_LIBRARY
2021-06-24 09:03:01 +00:00
NAMES ionobase
2021-06-22 23:11:10 +00:00
PATHS ${LIBIONOBASE_PREFIX}/lib)
if(LIBIONOBASE_INCLUDE_DIRS AND LIBIONOBASE_LIBRARY)
get_filename_component(LIBIONOBASE_LIBRARY_DIR ${LIBIONOBASE_LIBRARY}
DIRECTORY CACHE)
set(LIBIONOBASE_FOUND TRUE)
endif()
if(LIBIONOBASE_FOUND)
if(NOT LIBIONOBASE_FIND_QUIETLY)
message(STATUS "Found libionobase")
endif()
set(HAVE_LIBIONOBASE 1)
elseif(LIBIONOBASE_FOUND)
if(LIBIONOBASE_FIND_REQUIRED)
message(FATAL_ERROR "Could not find libionobase")
endif()
endif()
endif()