File: CMakeLists.txt

package info (click to toggle)
qtwebkit-opensource-src 5.212.0~alpha4-30
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 126,360 kB
  • sloc: cpp: 1,399,204; javascript: 111,961; ansic: 29,742; perl: 19,510; python: 13,364; ruby: 10,299; xml: 9,342; asm: 5,078; yacc: 2,166; lex: 906; sh: 417; makefile: 34
file content (70 lines) | stat: -rw-r--r-- 1,684 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
set(MiniBrowser_INCLUDE_DIRECTORIES
    ${CMAKE_BINARY_DIR}
    "${CMAKE_SOURCE_DIR}/Source"
    "${FORWARDING_HEADERS_DIR}/QtWebKit"
    "${WEBKIT_DIR}/qt/Api"
    "${WEBKIT_DIR}/qt/WebCoreSupport"
    "${WEBKIT2_DIR}/UIProcess/API/qt"
    ${WTF_DIR}
)

set(MiniBrowser_QML_SOURCES
    qml/AlertDialog.qml
    qml/AuthenticationDialog.qml
    qml/BrowserWindow.qml
    qml/CheckBox.qml
    qml/ColorChooser.qml
    qml/ConfirmDialog.qml
    qml/Dialog.qml
    qml/DialogButton.qml
    qml/DialogLineInput.qml
    qml/FilePicker.qml
    qml/ItemSelector.qml
    qml/MockTouchPoint.qml
    qml/PromptDialog.qml
    qml/ProxyAuthenticationDialog.qml
    qml/ScrollIndicator.qml
    qml/ViewportInfoItem.qml
)

set(QML_IMPORT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/qml ${CMAKE_BINARY_DIR}/imports
    CACHE STRING "" FORCE)

set(MiniBrowser_SOURCES
    BrowserWindow.cpp
    MiniBrowserApplication.cpp
    UrlLoader.cpp
    main.cpp
    utils.cpp
    ${MiniBrowser_QML_SOURCES}
)

qt5_add_resources(MiniBrowser_SOURCES
    MiniBrowser.qrc
)

set(MiniBrowser_SYSTEM_INCLUDE_DIRECTORIES
    ${Qt5Quick_INCLUDE_DIRS}
    ${Qt5Quick_PRIVATE_INCLUDE_DIRS}
)

set(MiniBrowser_LIBRARIES
    WebKit
    ${Qt5Quick_LIBRARIES}
)

if (SHARED_CORE)
    list(APPEND MiniBrowser_LIBRARIES
        WebKit2
    )
endif ()

if (ENABLE_TEST_SUPPORT)
    add_definitions(-DHAVE_QTTESTSUPPORT)
endif ()

include_directories(${MiniBrowser_INCLUDE_DIRECTORIES})
include_directories(SYSTEM ${MiniBrowser_SYSTEM_INCLUDE_DIRECTORIES})
add_executable(MiniBrowser ${MiniBrowser_SOURCES})
target_link_libraries(MiniBrowser ${MiniBrowser_LIBRARIES})
set_target_properties(MiniBrowser PROPERTIES FOLDER "Tools" AUTOMOC ON)