Commit 6cb7dc71 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

BUG: mantis #1397

parent 33000a88
...@@ -32,54 +32,34 @@ if( LIBKML_INCLUDE_DIR ) ...@@ -32,54 +32,34 @@ if( LIBKML_INCLUDE_DIR )
endif() endif()
find_path( LIBKML_INCLUDE_DIR kml/dom.h ) find_path( LIBKML_INCLUDE_DIR kml/dom.h )
find_library( LIBKML_BASE_LIBRARY NAMES kmlbase )
find_library( LIBKML_DOM_LIBRARY NAMES kmldom )
find_library( LIBKML_ENGINE_LIBRARY NAMES kmlengine )
find_library( LIBKML_BASE_LIBRARY mark_as_advanced(
NAMES kmlbase ) LIBKML_INCLUDE_DIR
# TODO : add HINTS derived from path of LIBKML_BASE_LIBRARY
find_library( LIBKML_CONVENIENCE_LIBRARY
NAMES kmlconvenience )
find_library( LIBKML_DOM_LIBRARY
NAMES kmldom )
find_library( LIBKML_ENGINE_LIBRARY
NAMES kmlengine )
find_library( LIBKML_REGIONATOR_LIBRARY
NAMES kmlregionator )
find_library( LIBKML_XSD_LIBRARY
NAMES kmlxsd )
find_library( LIBKML_MINIZIP_LIBRARY
NAMES minizip )
mark_as_advanced( LIBKML_INCLUDE_DIR
LIBKML_BASE_LIBRARY LIBKML_BASE_LIBRARY
LIBKML_CONVENIENCE_LIBRARY
LIBKML_DOM_LIBRARY LIBKML_DOM_LIBRARY
LIBKML_ENGINE_LIBRARY LIBKML_ENGINE_LIBRARY
LIBKML_REGIONATOR_LIBRARY )
LIBKML_XSD_LIBRARY
LIBKML_MINIZIP_LIBRARY )
# handle the QUIETLY and REQUIRED arguments and set LIBKML_FOUND to TRUE if # handle the QUIETLY and REQUIRED arguments and set LIBKML_FOUND to TRUE if
# all listed variables are TRUE # all listed variables are TRUE
include( FindPackageHandleStandardArgs ) include( FindPackageHandleStandardArgs )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( LibKML DEFAULT_MSG FIND_PACKAGE_HANDLE_STANDARD_ARGS(
LibKML
DEFAULT_MSG
LIBKML_INCLUDE_DIR
LIBKML_BASE_LIBRARY LIBKML_BASE_LIBRARY
LIBKML_CONVENIENCE_LIBRARY
LIBKML_DOM_LIBRARY LIBKML_DOM_LIBRARY
LIBKML_ENGINE_LIBRARY LIBKML_ENGINE_LIBRARY
LIBKML_REGIONATOR_LIBRARY
LIBKML_XSD_LIBRARY
LIBKML_MINIZIP_LIBRARY
LIBKML_INCLUDE_DIR
) )
if(LIBKML_FOUND) if(LIBKML_FOUND)
set(LIBKML_INCLUDE_DIRS ${LIBKML_INCLUDE_DIR}) set(LIBKML_INCLUDE_DIRS ${LIBKML_INCLUDE_DIR})
set(LIBKML_LIBRARIES ${LIBKML_BASE_LIBRARY} set(LIBKML_LIBRARIES
${LIBKML_CONVENIENCE_LIBRARY} ${LIBKML_BASE_LIBRARY}
${LIBKML_DOM_LIBRARY} ${LIBKML_DOM_LIBRARY}
${LIBKML_ENGINE_LIBRARY} ${LIBKML_ENGINE_LIBRARY}
${LIBKML_REGIONATOR_LIBRARY} )
${LIBKML_XSD_LIBRARY}
${LIBKML_MINIZIP_LIBRARY})
endif() endif()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment