AX: AccessibilityScrollView should be resilient to destruction of underlying scroll...
[webkit.git] / CMakeLists.txt
blob8cff2bf04d9cabd62e7fafd9bbb0f6ee04f3054e
1 # -----------------------------------------------------------------------------
2 # Determine CMake version and build type.
3 # -----------------------------------------------------------------------------
4 # NOTE: cmake_minimum_required() and project() *MUST* be the two first commands
5 # used, see https://cmake.org/cmake/help/v3.3/command/project.html -- the
6 # latter in particular handles loading a bunch of shared CMake definitions
7 # and loading the cross-compilation settings from CMAKE_TOOLCHAIN_FILE.
9 # cmake_minimum_required is also set inside Source/${FRAMEWORK}/CMakeLists.txt
10 # in support of the AppleWin internal build so this version should be kept in
11 # sync across those files.
13 cmake_minimum_required(VERSION 3.12)
14 project(WebKit)
16 # -----------------------------------------------------------------------------
17 # Common configuration
18 #------------------------------------------------------------------------------
19 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/Source/cmake")
20 include(WebKitCommon)
22 # -----------------------------------------------------------------------------
23 # Enable API unit tests and create a target for the test runner
24 # -----------------------------------------------------------------------------
25 if (ENABLE_API_TESTS)
26     enable_testing()
27 endif ()
29 # -----------------------------------------------------------------------------
30 # Add module directories
31 # -----------------------------------------------------------------------------
32 add_subdirectory(Source)
34 # -----------------------------------------------------------------------------
35 # Add tools
36 # -----------------------------------------------------------------------------
37 if (ENABLE_TOOLS)
38     add_subdirectory(Tools)
39 endif ()
41 if (DEVELOPER_MODE)
42     add_subdirectory(PerformanceTests)
43 endif ()
45 # -----------------------------------------------------------------------------
46 # Print the features list last, for maximum visibility.
47 # -----------------------------------------------------------------------------
48 PRINT_WEBKIT_OPTIONS()