blob: 0a99d1850f7d45fa03e6455d50e2336af3ee3b99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
if(WIN32)
set(WEBKIT_INCLUDE_DIR "WEBKIT_INCLUDE_DIR-NOTFOUND" CACHE PATH "Path to the WEBKIT include directory")
set(WEBKIT_LIBRARIES "WEBKIT_LIBRARIES-NOTFOUND" CACHE FILEPATH "Path to the WEBKIT .lib file")
if(WEBKIT_LIBRARIES AND WEBKIT_INCLUDE_DIR)
set(WEBKIT_FOUND 1)
link_directories(WEBKIT_LIBRARIES)
include_directories("${WEBKIT_INCLUDE_DIR}")
endif()
elseif(APPLE)
find_library(WEBKIT_LIBRARIES JavaScriptCore)
if(WEBKIT_LIBRARIES)
set(WEBKIT_FOUND 1)
endif()
else()
if(WITH_WEBKIT3)
px_check_modules(WEBKIT "javascriptcoregtk-3.0 >= 1.5.0")
if(NOT WEBKIT_LIBRARIES)
px_check_modules(WEBKIT "webkitgtk-3.0 < 1.5.0")
endif(NOT WEBKIT_LIBRARIES)
else()
px_check_modules(WEBKIT webkit-1.0)
endif()
endif()
|