Merge branch 'build_cmake' of https://github.com/TcT2k/wxWidgets
Add CMake-based build system. Merge the original branch without any changes except for resolving the conflict due to moving the contents of .travis.yml to a separate file by propagating the changes done in this file since then to the new script and rerunning ./build/update-setup-h and ./build/cmake/update_files.py to update the file lists changed in the meanwhile. Closes https://github.com/wxWidgets/wxWidgets/pull/330
This commit is contained in:
38
build/cmake/modules/FindWebkit.cmake
Normal file
38
build/cmake/modules/FindWebkit.cmake
Normal file
@@ -0,0 +1,38 @@
|
||||
# - Find Webkit-3.0
|
||||
# Find the Webkit-3.0 includes and library
|
||||
#
|
||||
# WEBKIT_INCLUDE_DIR - Where to find webkit include sub-directory.
|
||||
# WEBKIT_LIBRARIES - List of libraries when using Webkit-3.0.
|
||||
# WEBKIT_FOUND - True if Webkit-3.0 found.
|
||||
|
||||
SET( WEBKIT_VERSION "1.0")
|
||||
|
||||
IF (WEBKIT_INCLUDE_DIR)
|
||||
# Already in cache, be silent.
|
||||
SET(WEBKIT_FIND_QUIETLY TRUE)
|
||||
ENDIF (WEBKIT_INCLUDE_DIR)
|
||||
|
||||
FIND_PATH(WEBKIT_INCLUDE_DIR webkit/webkit.h
|
||||
PATH_SUFFIXES "webkitgtk-${WEBKIT_VERSION}"
|
||||
)
|
||||
|
||||
SET(WEBKIT_NAMES "webkitgtk-${WEBKIT_VERSION}")
|
||||
FIND_LIBRARY(WEBKIT_LIBRARY
|
||||
NAMES ${WEBKIT_NAMES}
|
||||
)
|
||||
|
||||
# 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(
|
||||
WEBKIT DEFAULT_MSG
|
||||
WEBKIT_LIBRARY WEBKIT_INCLUDE_DIR
|
||||
)
|
||||
|
||||
IF(WEBKIT_FOUND)
|
||||
SET( WEBKIT_LIBRARIES ${WEBKIT_LIBRARY} )
|
||||
ELSE(WEBKIT_FOUND)
|
||||
SET( WEBKIT_LIBRARIES )
|
||||
ENDIF(WEBKIT_FOUND)
|
||||
|
||||
MARK_AS_ADVANCED( WEBKIT_LIBRARY WEBKIT_INCLUDE_DIR )
|
Reference in New Issue
Block a user