FIND_PATH(GEOPACKINCLUDE_DIR geopack.hh HINTS ${USERLOCAL_ROOT}/include NO_DEFAULT_PATH ) mark_as_advanced(GEOPACKINCLUDE_DIR) find_library(GEOPACKLIBRARY NAMES geopack HINTS ${USERLOCAL_ROOT}/lib NO_DEFAULT_PATH ) 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()