File: FindUnity.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 (15 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
include(Prebuilt)

include(LibFindMacros)
libfind_pkg_check_modules(Unity unity)
foreach(i ${Unity_LIBRARIES})
	find_library(_unity_LIBRARY NAMES ${i} HINTS ${Unity_LIBRARY_DIRS})
	LIST(APPEND Unity_LIBRARY ${_unity_LIBRARY})
	unset(_unity_LIBRARY CACHE)
endforeach(i)
set(Unity_LIBRARIES ${Unity_LIBRARY})
unset(Unity_LIBRARY CACHE)

if(Unity_FOUND)
  set(Unity ON CACHE BOOL "Build with libunity support.")
endif(Unity_FOUND)