Blame view

cmake/modules/FindGeopack.cmake 528 Bytes
915606e8   Benjamin Renard   Find geopack lib
1
2
FIND_PATH(GEOPACKINCLUDE_DIR geopack.hh
  HINTS
6c8de11c   Benjamin Renard   Remove hard coded...
3
4
    ${USERLOCAL_ROOT}/include
  NO_DEFAULT_PATH
915606e8   Benjamin Renard   Find geopack lib
5
6
7
8
9
10
)
mark_as_advanced(GEOPACKINCLUDE_DIR)

find_library(GEOPACKLIBRARY 
    NAMES geopack
    HINTS
6c8de11c   Benjamin Renard   Remove hard coded...
11
12
      ${USERLOCAL_ROOT}/lib
    NO_DEFAULT_PATH
915606e8   Benjamin Renard   Find geopack lib
13
14
15
16
17
18
19
20
21
22
)
mark_as_advanced(GEOPACKLIBRARY)

include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Geopack DEFAULT_MSG GEOPACKLIBRARY GEOPACKINCLUDE_DIR)

if(GEOPACK_FOUND)
    set(GEOPACKINCLUDE_DIRS ${GEOPACKINCLUDE_DIR})
    set(GEOPACKLIBRARIES ${GEOPACKLIBRARY})
endif()