It just worked so far because FindCXX11 happend to include it already, and it also happend to be the first FindModule used.
19 lines
401 B
CMake
19 lines
401 B
CMake
# Once done these will be defined:
|
|
#
|
|
# AppKit_FOUND
|
|
# AppKit_LIBRARIES
|
|
#
|
|
|
|
if(AppKit_LIBRARIES)
|
|
set(AppKit_FOUND TRUE)
|
|
else()
|
|
find_library(APPKIT_FRAMEWORK AppKit)
|
|
|
|
set(AppKit_LIBRARIES ${APPKIT_FRAMEWORK} CACHE STRING "AppKit framework")
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(AppKit DEFAULT_MSG APPKIT_FRAMEWORK)
|
|
mark_as_advanced(APPKIT_FRAMEWORK)
|
|
endif()
|
|
|