FindMaglib.cmake
512 Bytes
FIND_PATH(MAGLIBINCLUDE_DIR maglib.hh
HINTS
${USERLOCAL_ROOT}/include
NO_DEFAULT_PATH
)
mark_as_advanced(MAGLIBINCLUDE_DIR)
find_library(MAGLIBLIBRARY
NAMES maglib
HINTS
${USERLOCAL_ROOT}/lib
NO_DEFAULT_PATH
)
mark_as_advanced(MAGLIBLIBRARY)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Maglib DEFAULT_MSG MAGLIBLIBRARY MAGLIBINCLUDE_DIR)
if(MAGLIB_FOUND)
set(MAGLIBINCLUDE_DIRS ${MAGLIBINCLUDE_DIR})
set(MAGLIBLIBRARIES ${MAGLIBLIBRARY})
endif()