source: calamares/trunk/fuentes/src/libcalamaresui/CMakeLists.txt @ 7538

Last change on this file since 7538 was 7538, checked in by kbut, 17 months ago

sync with github

File size: 1.9 KB
Line 
1project( libcalamaresui CXX )
2
3set( calamaresui_SOURCES
4    modulesystem/CppJobModule.cpp
5    modulesystem/Module.cpp
6    modulesystem/ModuleManager.cpp
7    modulesystem/ProcessJobModule.cpp
8    modulesystem/ViewModule.cpp
9
10    utils/CalamaresUtilsGui.cpp
11    utils/DebugWindow.cpp
12    utils/ImageRegistry.cpp
13
14    utils/qjsonmodel.cpp
15    utils/qjsonitem.cpp
16
17    viewpages/AbstractPage.cpp
18    viewpages/BlankViewStep.cpp
19    viewpages/ViewStep.cpp
20
21    widgets/ClickableLabel.cpp
22    widgets/FixedAspectRatioLabel.cpp
23    widgets/waitingspinnerwidget.cpp
24    widgets/WaitingWidget.cpp
25
26    ExecutionViewStep.cpp
27    Branding.cpp
28    ViewManager.cpp
29)
30
31# Don't warn about third-party sources
32mark_thirdparty_code(
33    utils/ImageRegistry.cpp
34    utils/qjsonitem.cpp
35    utils/qjsonmodel.cpp
36    widgets/waitingspinnerwidget.cpp
37)
38
39set( calamaresui_UI
40    utils/DebugWindow.ui
41)
42
43if( WITH_PYTHON )
44    list( APPEND calamaresui_SOURCES
45        modulesystem/PythonJobModule.cpp
46    )
47endif()
48
49if( WITH_PYTHONQT )
50    include_directories(${PYTHON_INCLUDE_DIRS})
51    include_directories(${PYTHONQT_INCLUDE_DIR})
52
53    list( APPEND calamaresui_SOURCES
54        modulesystem/PythonQtViewModule.cpp
55        utils/PythonQtUtils.cpp
56        viewpages/PythonQtJob.cpp
57        viewpages/PythonQtViewStep.cpp
58        viewpages/PythonQtGlobalStorageWrapper.cpp
59        viewpages/PythonQtUtilsWrapper.cpp
60    )
61    set( OPTIONAL_PRIVATE_LIBRARIES
62        ${OPTIONAL_PRIVATE_LIBRARIES}
63        ${PYTHON_LIBRARIES}
64        ${PYTHONQT_LIBRARIES}
65    )
66endif()
67
68calamares_add_library( calamaresui
69    SOURCES ${calamaresui_SOURCES}
70    UI ${calamaresui_UI}
71    EXPORT_MACRO UIDLLEXPORT_PRO
72    LINK_PRIVATE_LIBRARIES
73        ${OPTIONAL_PRIVATE_LIBRARIES}
74    LINK_LIBRARIES
75        Qt5::Svg
76        Qt5::QuickWidgets
77    RESOURCES libcalamaresui.qrc
78    EXPORT CalamaresLibraryDepends
79    VERSION ${CALAMARES_VERSION_SHORT}
80)
Note: See TracBrowser for help on using the repository browser.