File: FindDoubleConversion.cmake

package info (click to toggle)
inkscape 1.4.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 402,900 kB
  • sloc: cpp: 547,256; python: 72,677; ansic: 63,355; javascript: 3,864; xml: 2,345; sh: 1,667; makefile: 824; perl: 614
file content (27 lines) | stat: -rw-r--r-- 888 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# - Try to find double-conversion
# Once done, this will define
#
# DoubleConversion_FOUND - system has double-conversion
# DoubleConversion_INCLUDE_DIRS - the double-conversion include directories
# DoubleConversion_LIBRARIES - link these to use double-conversion

include(FindPackageHandleStandardArgs)

find_library(DoubleConversion_LIBRARY double-conversion
  PATHS ${DoubleConversion_LIBRARYDIR})

find_path(DoubleConversion_INCLUDE_DIR double-conversion/double-conversion.h
  PATHS ${DoubleConversion_INCLUDEDIR})

find_package_handle_standard_args(DoubleConversion DEFAULT_MSG
  DoubleConversion_LIBRARY
  DoubleConversion_INCLUDE_DIR)

mark_as_advanced(
  DoubleConversion_LIBRARY
  DoubleConversion_INCLUDE_DIR)

if(DoubleConversion_FOUND)
  set(DoubleConversion_LIBRARIES ${DoubleConversion_LIBRARY})
  set(DoubleConversion_INCLUDE_DIRS ${DoubleConversion_INCLUDE_DIR})
endif()