summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: 44e3c22caf81d4b3fd8f48355e06e45b74f7a62a (plain)
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
71
72
73
cmake_minimum_required(VERSION 3.16)
project(qqstylegenerator VERSION 0.1 LANGUAGES CXX)

find_package(Qt6 6.5 REQUIRED GuiPrivate Network Quick QuickControls2 QuickControls2Private)

qt_standard_project_setup()

qt_add_executable(${PROJECT_NAME}
    src/main.cpp
    src/bridge.h
    src/bridge.cpp
    src/jsontools.h
    src/jsontools.cpp
    src/stylegenerator.h
)

qt_add_resources(${PROJECT_NAME} "controls"
    PREFIX "/"
    FILES
        main.qml
        FigmaOptions.qml
        ControlsOptions.qml
        ExportOptions.qml
        Log.qml
        Usage.qml
        Generate.qml
        templates/ApplicationWindow.qml
        templates/BusyIndicator.qml
        templates/Button.qml
        templates/CheckBox.qml
        templates/ComboBox.qml
        templates/Frame.qml
        templates/GroupBox.qml
        templates/ItemDelegate.qml
        templates/PageIndicator.qml
        templates/Popup.qml
        templates/ProgressBar.qml
        templates/RadioButton.qml
        templates/RangeSlider.qml
        templates/RoundButton.qml
        templates/ScrollBar.qml
        templates/ScrollIndicator.qml
        templates/ScrollView.qml
        templates/Slider.qml
        templates/SpinBox.qml
        templates/Switch.qml
        templates/TabBar.qml
        templates/TabButton.qml
        templates/TextArea.qml
        templates/TextField.qml
        templates/ToolBar.qml
        templates/ToolButton.qml
        templates/ToolTip.qml
        templates/impl/ComboBoxPopup.qml
        templates/impl/PageIndicatorDelegate.qml
        templates/impl/StyleImage.qml
        config.json
        figma_and_qt.png
        figma_and_qt@2x.png
        background.png
        howto.txt
)

target_link_libraries(${PROJECT_NAME}
    PRIVATE
        Qt::GuiPrivate
        Qt::Network
        Qt::Quick
        Qt::QuickControls2
        Qt::QuickControls2Private
)

target_include_directories(${PROJECT_NAME} PUBLIC src)