2018-12-01 07:38:43 -05:00
|
|
|
# - Find Webkit
|
|
|
|
# Find the Webkit includes and library
|
2016-09-25 16:19:39 -04:00
|
|
|
#
|
|
|
|
# WEBKIT_INCLUDE_DIR - Where to find webkit include sub-directory.
|
2018-12-01 07:38:43 -05:00
|
|
|
# WEBKIT_LIBRARIES - List of libraries when using Webkit.
|
|
|
|
# WEBKIT_FOUND - True if Webkit found.
|
2016-09-25 16:19:39 -04:00
|
|
|
|
2018-12-01 07:38:43 -05:00
|
|
|
SET(WEBKIT_VERSION 1.0)
|
|
|
|
if(DEFINED Webkit_FIND_VERSION)
|
|
|
|
SET(WEBKIT_VERSION ${Webkit_FIND_VERSION})
|
|
|
|
endif()
|
2016-09-25 16:19:39 -04:00
|
|
|
|
2018-12-01 07:38:43 -05:00
|
|
|
SET(WEBKIT_INCLUDE_DIR WEBKIT_INCLUDE_DIR-NOTFOUND)
|
|
|
|
SET(WEBKIT_LIBRARY WEBKIT_LIBRARY-NOTFOUND)
|
|
|
|
SET(WEBKIT_LIBRARIES WEBKIT_LIBRARIES-NOTFOUND)
|
2016-09-25 16:19:39 -04:00
|
|
|
|
|
|
|
FIND_PATH(WEBKIT_INCLUDE_DIR webkit/webkit.h
|
2017-12-09 08:38:11 -05:00
|
|
|
PATH_SUFFIXES "webkitgtk-${WEBKIT_VERSION}"
|
2016-09-25 16:19:39 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
SET(WEBKIT_NAMES "webkitgtk-${WEBKIT_VERSION}")
|
2017-12-09 08:38:11 -05:00
|
|
|
FIND_LIBRARY(WEBKIT_LIBRARY
|
|
|
|
NAMES ${WEBKIT_NAMES}
|
2016-09-25 16:19:39 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
# Handle the QUIETLY and REQUIRED arguments and set WEBKIT_FOUND to
|
|
|
|
# TRUE if all listed variables are TRUE.
|
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(
|
2017-12-09 08:38:11 -05:00
|
|
|
WEBKIT DEFAULT_MSG
|
|
|
|
WEBKIT_LIBRARY WEBKIT_INCLUDE_DIR
|
2016-09-25 16:19:39 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
IF(WEBKIT_FOUND)
|
2017-12-09 08:38:11 -05:00
|
|
|
SET( WEBKIT_LIBRARIES ${WEBKIT_LIBRARY} )
|
2016-09-25 16:19:39 -04:00
|
|
|
ELSE(WEBKIT_FOUND)
|
2017-12-09 08:38:11 -05:00
|
|
|
SET( WEBKIT_LIBRARIES )
|
2016-09-25 16:19:39 -04:00
|
|
|
ENDIF(WEBKIT_FOUND)
|
|
|
|
|
2018-12-01 07:38:43 -05:00
|
|
|
MARK_AS_ADVANCED(WEBKIT_LIBRARY WEBKIT_LIBRARIES WEBKIT_INCLUDE_DIR)
|