2013-04-09 03:00:10 +02:00
|
|
|
project(plasma-shell)
|
2012-12-19 15:42:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Tell CMake to run moc when necessary:
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
# As moc files are generated in the binary dir, tell CMake
|
|
|
|
# to always look for includes there:
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
|
|
|
|
|
|
|
|
|
|
|
|
find_path(KDE_MODULES_DIR NAMES KDE4Macros.cmake PATH_SUFFIXES share/cmake/modules)
|
|
|
|
|
|
|
|
|
|
|
|
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
|
|
|
|
|
|
|
|
|
|
|
find_package(Qt5Transitional REQUIRED Core)
|
2012-12-19 20:11:04 +01:00
|
|
|
find_package(Qt5Qml REQUIRED)
|
|
|
|
find_package(Qt5Quick REQUIRED)
|
2013-03-05 19:17:22 +01:00
|
|
|
find_package(Qt5Script REQUIRED)
|
2013-03-05 14:43:14 +01:00
|
|
|
find_package(KCoreAddons REQUIRED)
|
2013-04-04 17:51:01 +02:00
|
|
|
find_package(Solid REQUIRED)
|
2012-12-19 15:42:24 +01:00
|
|
|
|
|
|
|
# The Qt5Widgets_INCLUDES also includes the include directories for
|
|
|
|
# dependencies QtCore and QtGui
|
|
|
|
include_directories(${Qt5Widgets_DEFINITIONS} ${Qt5Quick_DEFINITIONS} ${QT_INCLUDES} ${KDE4_INCLUDES})
|
|
|
|
|
|
|
|
# We need add -DQT_WIDGETS_LIB when using QtWidgets in Qt 5.
|
2012-12-19 20:11:04 +01:00
|
|
|
add_definitions(${Qt5Widgets_DEFINITIONS} ${Qt5Quick_DEFINITIONS} ${Qt5Qml_DEFINITIONS})
|
2012-12-19 15:42:24 +01:00
|
|
|
|
|
|
|
# Executables fail to build with Qt 5 in the default configuration
|
|
|
|
# without -fPIE. We add that here.
|
|
|
|
set(CMAKE_CXX_FLAGS "${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")
|
|
|
|
|
2013-03-05 19:17:22 +01:00
|
|
|
set(scripting_SRC
|
|
|
|
scripting/appinterface.cpp
|
|
|
|
scripting/applet.cpp
|
|
|
|
scripting/containment.cpp
|
2013-06-05 14:57:41 +02:00
|
|
|
scripting/configgroup.cpp
|
2013-03-07 17:39:10 +01:00
|
|
|
scripting/desktopscriptengine.cpp
|
2013-03-05 19:17:22 +01:00
|
|
|
scripting/i18n.cpp
|
|
|
|
scripting/layouttemplatepackagestructure.cpp
|
2013-03-07 17:39:10 +01:00
|
|
|
scripting/panel.cpp
|
2013-03-05 19:17:22 +01:00
|
|
|
scripting/rect.cpp
|
|
|
|
scripting/scriptengine.cpp
|
|
|
|
scripting/widget.cpp
|
|
|
|
)
|
|
|
|
|
2013-03-21 01:49:35 +01:00
|
|
|
set(widgetexplorer_SRC
|
|
|
|
widgetexplorer/kcategorizeditemsviewmodels.cpp
|
|
|
|
widgetexplorer/plasmaappletitemmodel.cpp
|
2013-03-21 03:21:36 +01:00
|
|
|
widgetexplorer/widgetexplorer.cpp
|
2013-03-26 02:41:58 +01:00
|
|
|
widgetexplorer/widgetexplorerview.cpp
|
2013-03-21 01:49:35 +01:00
|
|
|
)
|
|
|
|
|
2013-04-09 03:00:10 +02:00
|
|
|
add_executable(plasma-shell
|
2013-01-29 19:29:16 +01:00
|
|
|
main.cpp
|
2013-04-24 22:54:46 +02:00
|
|
|
configview.cpp
|
|
|
|
containmentconfigview.cpp
|
2013-01-29 19:29:16 +01:00
|
|
|
desktopcorona.cpp
|
2013-02-14 14:39:46 +01:00
|
|
|
panelview.cpp
|
2013-03-05 13:34:18 +01:00
|
|
|
shellpluginloader.cpp
|
|
|
|
shellpackage.cpp
|
2013-04-21 11:21:41 +02:00
|
|
|
lookandfeelpackage.cpp
|
2013-01-29 20:45:44 +01:00
|
|
|
view.cpp
|
2013-03-19 22:06:06 +01:00
|
|
|
panelconfigview.cpp
|
2013-03-05 19:17:22 +01:00
|
|
|
${scripting_SRC}
|
2013-03-21 01:49:35 +01:00
|
|
|
${widgetexplorer_SRC}
|
2013-01-29 19:29:16 +01:00
|
|
|
)
|
2012-12-19 15:42:24 +01:00
|
|
|
|
|
|
|
# The Qt5Widgets_LIBRARIES variable also includes QtGui and QtCore
|
2013-04-09 03:00:10 +02:00
|
|
|
target_link_libraries(plasma-shell
|
2013-02-02 04:05:17 +01:00
|
|
|
#${Qt5Widgets_LIBRARIES}
|
2012-12-19 15:42:24 +01:00
|
|
|
${Qt5Quick_LIBRARIES}
|
2012-12-19 20:11:04 +01:00
|
|
|
${Qt5Qml_LIBRARIES}
|
2013-08-09 05:22:20 +02:00
|
|
|
${KCore_LIBRARIES}
|
2013-03-06 01:27:37 +01:00
|
|
|
${KDE4_KIO_LIBS}
|
2013-02-27 21:45:35 +01:00
|
|
|
${KWindowSystem_LIBRARIES}
|
2013-03-05 14:43:14 +01:00
|
|
|
${KCoreAddons_LIBRARIES}
|
2013-02-05 21:37:42 +01:00
|
|
|
plasma
|
2013-03-05 19:17:22 +01:00
|
|
|
${Qt5Script_LIBRARIES}
|
2013-03-05 20:14:01 +01:00
|
|
|
${KDE4_KDEUI_LIBS}
|
2013-07-11 22:57:04 +02:00
|
|
|
${KDE4Support_LIBRARIES}
|
2013-04-04 17:43:48 +02:00
|
|
|
${Solid_LIBRARIES}
|
2013-04-25 14:11:53 +02:00
|
|
|
kdeclarative
|
2012-12-19 19:40:33 +01:00
|
|
|
)
|
2013-03-06 03:41:48 +01:00
|
|
|
|
2013-01-31 11:36:37 +01:00
|
|
|
|
2013-04-09 03:00:10 +02:00
|
|
|
install(TARGETS plasma-shell ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2013-02-01 11:50:29 +01:00
|
|
|
|
2013-02-14 19:11:17 +01:00
|
|
|
add_subdirectory(applets)
|
2013-02-01 11:50:29 +01:00
|
|
|
add_subdirectory(qmlpackages)
|