[Wk2][EFL] EFL needs a WebKitTestRunner
[WebKit-https.git] / Source / CMakeLists.txt
1 # -----------------------------------------------------------------------------
2 # Add module directories
3 # -----------------------------------------------------------------------------
4 ADD_SUBDIRECTORY(WTF)
5
6 ADD_SUBDIRECTORY(JavaScriptCore)
7
8 IF (ENABLE_WEBCORE)
9     ADD_SUBDIRECTORY(WebCore)
10 ENDIF ()
11
12 IF (ENABLE_WEBKIT)
13     ADD_SUBDIRECTORY(WebKit)
14 ENDIF ()
15
16 IF (ENABLE_WEBKIT2)
17     ADD_SUBDIRECTORY(WebKit2)
18 ENDIF ()
19
20 # -----------------------------------------------------------------------------
21 # Set compiler flags for all targets
22 # -----------------------------------------------------------------------------
23 WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WTF_LIBRARY_NAME})
24 WEBKIT_SET_EXTRA_COMPILER_FLAGS(${JavaScriptCore_LIBRARY_NAME})
25 WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebCoreTestSupport_LIBRARY_NAME})
26
27 IF (ENABLE_WEBCORE)
28     WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebCore_LIBRARY_NAME})
29 ENDIF ()
30
31 IF (ENABLE_WEBKIT)
32     WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebKit_LIBRARY_NAME})
33 ENDIF ()
34
35 IF (ENABLE_WEBKIT2)
36     WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebKit2_LIBRARY_NAME})
37 ENDIF ()
38
39 # -----------------------------------------------------------------------------
40 # Create the configuration file
41 # -----------------------------------------------------------------------------
42 CONFIGURE_FILE(cmakeconfig.h.cmake ${CMAKE_BINARY_DIR}/cmakeconfig.h @ONLY)