Layer names should not contain object addresses in release builds
[WebKit-https.git] / CMakeLists.txt
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.
8 #
9 cmake_minimum_required(VERSION 3.10)
10 project(WebKit)
11
12 # -----------------------------------------------------------------------------
13 # Common configuration
14 #------------------------------------------------------------------------------
15 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/Source/cmake")
16 include(WebKitCommon)
17
18 # -----------------------------------------------------------------------------
19 # Enable API unit tests and create a target for the test runner
20 # -----------------------------------------------------------------------------
21 if (ENABLE_API_TESTS)
22     enable_testing()
23 endif ()
24
25 # -----------------------------------------------------------------------------
26 # Add module directories
27 # -----------------------------------------------------------------------------
28 add_subdirectory(Source)
29
30 # -----------------------------------------------------------------------------
31 # Add tools
32 # -----------------------------------------------------------------------------
33 if (ENABLE_TOOLS)
34     add_subdirectory(Tools)
35 endif ()
36
37 if (DEVELOPER_MODE)
38     add_subdirectory(PerformanceTests)
39 endif ()
40
41 # -----------------------------------------------------------------------------
42 # Print the features list last, for maximum visibility.
43 # -----------------------------------------------------------------------------
44 PRINT_WEBKIT_OPTIONS()