Blame view

cmake/modules/FindMaglib.cmake 512 Bytes
386b4683   Hacene SI HADJ MOHAND   FindMaglib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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()