Progress towards CMake on Mac.
[WebKit-https.git] / Source / WebKit / CMakeLists.txt
1 # FIXME: Put Windows and Mac build files here.
2
3 set(WebKit_SOURCES
4 )
5
6 set(WebKit_INCLUDE_DIRECTORIES
7 )
8
9 set(WebKit_LIBRARIES
10     JavaScriptCore
11     WTF
12     WebCore
13 )
14
15 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
16
17 include_directories(${WebKit_INCLUDE_DIRECTORIES})
18 add_library(WebKit ${WebKit_LIBRARY_TYPE} ${WebKit_SOURCES})
19 add_dependencies(WebKit WebCore)
20 target_link_libraries(WebKit ${WebKit_LIBRARIES})
21 set_target_properties(WebKit PROPERTIES FOLDER "WebKit")
22 set_target_properties(WebKit PROPERTIES LINK_INTERFACE_LIBRARIES "")
23
24 if (WebKit_OUTPUT_NAME)
25     set_target_properties(WebKit PROPERTIES OUTPUT_NAME ${WebKit_OUTPUT_NAME})
26 endif ()
27
28 POPULATE_LIBRARY_VERSION(WEBKIT)
29 set_target_properties(WebKit PROPERTIES VERSION ${WEBKIT_VERSION} SOVERSION ${WEBKIT_VERSION_MAJOR})
30 install(TARGETS WebKit DESTINATION "${LIB_INSTALL_DIR}")