File: FindColordGTK.cmake

package info (click to toggle)
darktable 2.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,236 kB
  • sloc: ansic: 200,593; cpp: 23,773; xml: 10,142; lisp: 7,084; sh: 2,489; perl: 1,701; ruby: 1,155; python: 426; makefile: 289; awk: 110; asm: 46
file content (17 lines) | stat: -rw-r--r-- 549 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SET(COLORDGTK_FIND_REQUIRED ${ColordGTK_FIND_REQUIRED})

include(Prebuilt)

include(LibFindMacros)
libfind_pkg_check_modules(COLORDGTK colord-gtk)
foreach(i ${COLORDGTK_LIBRARIES})
	find_library(_colordgtk_LIBRARY NAMES ${i} HINTS ${COLORDGTK_LIBRARY_DIRS})
	LIST(APPEND COLORDGTK_LIBRARY ${_colordgtk_LIBRARY})
	unset(_colordgtk_LIBRARY CACHE)
endforeach(i)
set(COLORDGTK_LIBRARIES ${COLORDGTK_LIBRARY})
unset(COLORDGTK_LIBRARY CACHE)

if (COLORDGTK_FOUND)
  set(COLORDGTK ON CACHE BOOL "Build with libcolord-gtk support.")
endif (COLORDGTK_FOUND)