File: FindUnity.cmake

package info (click to toggle)
darktable 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 26,388 kB
  • sloc: ansic: 226,545; cpp: 33,844; xml: 11,633; lisp: 8,205; sh: 2,988; perl: 1,703; ruby: 1,196; python: 586; makefile: 294; awk: 110; asm: 46; sql: 38
file content (17 lines) | stat: -rw-r--r-- 479 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SET(UNITY_FIND_REQUIRED ${Unity_FIND_REQUIRED})

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)