FindGSSFramework.cmake 688 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
# Find GSS.framework
# This will define :
#
# GSSFRAMEWORK_FOUND
# GSSFRAMEWORK_INCLUDE_DIR
# GSSFRAMEWORK_LIBRARIES
# GSSFRAMEWORK_LDFLAGS
#

10 11 12 13 14 15 16 17 18
find_path(GSSFRAMEWORK_INCLUDE_DIR NAMES GSS.h)
find_library(GSSFRAMEWORK_LIBRARIES NAMES GSS)
if(GSSFRAMEWORK_INCLUDE_DIR AND GSSFRAMEWORK_LIBRARIES)
	if(NOT CoreFoundation_FIND_QUIETLY)
		message(STATUS "Found GSS.framework ${GSSFRAMEWORK_LIBRARIES}")
	endif()
	set(GSSFRAMEWORK_FOUND TRUE)
	set(GSSFRAMEWORK_LDFLAGS "-framework GSS")
endif()
19

20 21 22
if(GSS_FIND_REQUIRED AND NOT GSSFRAMEWORK_FOUND)
	message(FATAL_ERROR "CoreFoundation not found")
endif()
23

24
mark_as_advanced(
25 26 27 28
	GSSFRAMEWORK_INCLUDE_DIR
	GSSFRAMEWORK_LIBRARIES
	GSSFRAMEWORK_LDFLAGS
)