File: FindIsoCodes.cmake

package info (click to toggle)
darktable 5.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 62,864 kB
  • sloc: ansic: 361,898; cpp: 102,446; xml: 19,813; lisp: 14,539; sh: 3,771; javascript: 3,264; perl: 1,925; python: 1,485; ruby: 975; makefile: 543; asm: 46; sql: 38; awk: 21
file content (20 lines) | stat: -rw-r--r-- 613 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Try to find iso-codes
# The following variables will be set:
#
#  IsoCodes_LOCATION
#  IsoCodes_LOCALEDIR

find_package(PkgConfig QUIET)
pkg_check_modules(PC_IsoCodes iso-codes)

set(IsoCodes_FOUND 0)

if(PC_IsoCodes_VERSION VERSION_LESS IsoCodes_FIND_VERSION)
  message(STATUS "iso-codes version ${PC_IsoCodes_VERSION} found but we need at least version ${IsoCodes_FIND_VERSION}")
else()
  if(PC_IsoCodes_FOUND)
    set(IsoCodes_FOUND 1)
    set(IsoCodes_LOCATION "${PC_IsoCodes_PREFIX}/share/iso-codes/json")
    set(IsoCodes_LOCALEDIR "${PC_IsoCodes_PREFIX}/share/locale")
  endif(PC_IsoCodes_FOUND)
endif()