File: FindAppKit.cmake

package info (click to toggle)
cantata 3.4.0.ds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,428 kB
  • sloc: cpp: 109,584; perl: 1,366; xml: 722; python: 139; lex: 110; sh: 105; yacc: 78; makefile: 8
file content (23 lines) | stat: -rw-r--r-- 676 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# - Find AppKit on Mac
#
#  AppKit_LIBRARY - the library to use AppKit
#  AppKit_FOUND - true if AppKit has been found

# Copyright (c) 2009, Harald Fernengel <harry@kdevelop.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.

include(FindPackageHandleStandardArgs)

find_library(AppKit_LIBRARY AppKit)

find_package_handle_standard_args(AppKit DEFAULT_MSG AppKit_LIBRARY)

if(AppKit_FOUND)
	set(AppKit_LIBRARIES ${AppKit_LIBRARY})
	add_library(AppKit::AppKit UNKNOWN IMPORTED)
	set_target_properties(AppKit::AppKit PROPERTIES
		IMPORTED_LOCATION "${AppKit_LIBRARY}"
	)
endif()