File: LibKMLConfig.cmake.in

package info (click to toggle)
libkml 1.3.0-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 14,640 kB
  • sloc: cpp: 48,088; python: 2,008; xml: 1,806; ansic: 1,766; php: 223; java: 195; ruby: 109; perl: 108; sh: 42; makefile: 26
file content (22 lines) | stat: -rw-r--r-- 708 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Compute paths
get_filename_component(LIBKML_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)

set(LIBKML_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@")

if(NOT TARGET foo AND NOT LIBKML_BINARY_DIR)
  include("${LIBKML_CMAKE_DIR}/LibKMLTargets.cmake")
endif()

set(LIBKML_LIBRARIES)

foreach(targ @LIBKML_TARGETS@)
  get_target_property(LIB_LIB_FILENAME ${targ} IMPORTED_LOCATION_@CONFIG_TYPE@)
  get_target_property(LIB_LINK_FILENAME ${targ} IMPORTED_LINK_INTERFACE_LIBRARIES_@CONFIG_TYPE@)
  string(REGEX MATCH "^kml" matched ${LIB_LINK_FILENAME})
  if(NOT matched)
    list(APPEND LIBKML_LIBRARIES ${LIB_LINK_FILENAME})
  endif()
  list(APPEND LIBKML_LIBRARIES ${LIB_LIB_FILENAME})
endforeach()

set(LIBKML_FOUND TRUE)