Unreviewed, rolling out r188428.
[WebKit-https.git] / Source / WebKit / CMakeLists.txt
1 set(WebKit_SOURCES
2 )
3
4 set(WebKit_INCLUDE_DIRECTORIES
5     "${CMAKE_BINARY_DIR}"
6     "${CMAKE_SOURCE_DIR}/Source"
7     "${DERIVED_SOURCES_DIR}"
8     "${DERIVED_SOURCES_DIR}/ForwardingHeaders"
9     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/JavaScriptCore"
10     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebCore"
11     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKitLegacy"
12     "${JAVASCRIPTCORE_DIR}"
13     "${JAVASCRIPTCORE_DIR}/disassembler"
14     "${WTF_DIR}"
15 )
16
17 set(WebKit_SYSTEM_INCLUDE_DIRECTORIES "")
18
19 set(WebKit_LIBRARIES
20     PRIVATE JavaScriptCore
21     PRIVATE WTF
22     PRIVATE WebCore
23 )
24
25 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
26
27 include_directories(${WebKit_INCLUDE_DIRECTORIES})
28 include_directories(SYSTEM ${WebKit_SYSTEM_INCLUDE_DIRECTORIES})
29
30 if (MSVC)
31     ADD_PRECOMPILED_HEADER("WebKitPrefix.h" "win/WebKitPrefix.cpp" WebKit_SOURCES)
32 endif ()
33
34 add_library(WebKit ${WebKit_LIBRARY_TYPE} ${WebKit_SOURCES})
35 add_dependencies(WebKit WebCore)
36 target_link_libraries(WebKit ${WebKit_LIBRARIES})
37 set_target_properties(WebKit PROPERTIES FOLDER "WebKit")
38
39 if (WebKit_OUTPUT_NAME)
40     set_target_properties(WebKit PROPERTIES OUTPUT_NAME ${WebKit_OUTPUT_NAME})
41 endif ()
42
43 POPULATE_LIBRARY_VERSION(WEBKIT)
44 set_target_properties(WebKit PROPERTIES VERSION ${WEBKIT_VERSION} SOVERSION ${WEBKIT_VERSION_MAJOR})
45 install(TARGETS WebKit DESTINATION "${LIB_INSTALL_DIR}")