calamares/src/libcalamaresui/CMakeLists.txt

70 lines
1.7 KiB
CMake
Raw Normal View History

set( CALAMARESUI_LIBRARY_TARGET calamaresui )
list( APPEND ${CALAMARESUI_LIBRARY_TARGET}_SOURCES
modulesystem/CppJobModule.cpp
modulesystem/Module.cpp
modulesystem/ModuleManager.cpp
modulesystem/ProcessJobModule.cpp
modulesystem/ViewModule.cpp
utils/CalamaresUtilsGui.cpp
2015-03-04 19:35:10 +01:00
utils/DebugWindow.cpp
utils/ImageRegistry.cpp
utils/YamlUtils.cpp
2015-03-04 20:22:58 +01:00
utils/qjsonmodel.cpp
utils/qjsonitem.cpp
viewpages/AbstractPage.cpp
viewpages/ViewStep.cpp
widgets/ClickableLabel.cpp
2015-06-20 01:04:54 +02:00
widgets/FixedAspectRatioLabel.cpp
2014-08-21 17:44:35 +02:00
widgets/QtWaitingSpinner.cpp
widgets/WaitingWidget.cpp
2014-08-21 17:44:35 +02:00
2015-09-09 19:01:34 +02:00
ExecutionViewStep.cpp
Branding.cpp
Settings.cpp
ViewManager.cpp
)
list( APPEND ${CALAMARESUI_LIBRARY_TARGET}_UI
2015-03-04 19:35:10 +01:00
utils/DebugWindow.ui
)
if( WITH_PYTHON )
list( APPEND ${CALAMARESUI_LIBRARY_TARGET}_SOURCES
modulesystem/PythonJobModule.cpp
)
endif()
if( WITH_PYTHONQT )
include_directories(${PYTHON_INCLUDE_DIRS})
include_directories(${PYTHONQT_INCLUDE_DIR})
list( APPEND ${CALAMARESUI_LIBRARY_TARGET}_SOURCES
modulesystem/PythonQtViewModule.cpp
2016-10-04 15:29:17 +02:00
viewpages/PythonQtViewStep.cpp
)
set( OPTIONAL_PRIVATE_LIBRARIES
${OPTIONAL_PRIVATE_LIBRARIES}
${PYTHON_LIBRARIES}
${PYTHONQT_LIBRARIES}
)
endif()
calamares_add_library( ${CALAMARESUI_LIBRARY_TARGET}
SOURCES ${${CALAMARESUI_LIBRARY_TARGET}_SOURCES}
UI ${${CALAMARESUI_LIBRARY_TARGET}_UI}
EXPORT_MACRO UIDLLEXPORT_PRO
2016-12-07 16:37:29 +01:00
LINK_PRIVATE_LIBRARIES
yaml-cpp
Qt5::Svg
2016-12-07 16:37:29 +01:00
Qt5::QuickWidgets
${OPTIONAL_PRIVATE_LIBRARIES}
RESOURCES libcalamaresui.qrc
EXPORT CalamaresLibraryDepends
VERSION ${CALAMARES_VERSION_SHORT}
)