obs-studio/cmake/Modules/FindAppKit.cmake
BtbN 2bf8a7dce9 Include FindPackageHandleStandardArgs.cmake in every find module using it
It just worked so far because FindCXX11 happend to include it
already, and it also happend to be the first FindModule used.
2014-08-21 16:38:49 +02:00

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()