Preparing the upcoming release, switch to experimental Added new build dependendies - gcc (>= 4:6) - g++ (>= 4:6) - libqt5xdgiconloader-dev (>= 1.3.1~) Added some needed minimum versions Fixed VCS fields, point to the right branch Bumped Standards to 3.9.8, no changes needed Added Recommends lxqt-panel-l10n Fixed copyrights Format field to https Bumped years in copyrights Added translation control to rules Added hardening options Set CMAKE_BUILD_TYPE=RelWithDebInfo Exported LC_ALL=C.UTF-8, make builds reproducible
119 lines
2.5 KiB
CMake
119 lines
2.5 KiB
CMake
set(PROJECT lxqt-panel)
|
|
|
|
set(PRIV_HEADERS
|
|
panelpluginsmodel.h
|
|
windownotifier.h
|
|
lxqtpanel.h
|
|
lxqtpanelapplication.h
|
|
lxqtpanelapplication_p.h
|
|
lxqtpanellayout.h
|
|
plugin.h
|
|
pluginsettings_p.h
|
|
lxqtpanellimits.h
|
|
popupmenu.h
|
|
pluginmoveprocessor.h
|
|
lxqtpanelpluginconfigdialog.h
|
|
config/configpaneldialog.h
|
|
config/configpanelwidget.h
|
|
config/configpluginswidget.h
|
|
config/addplugindialog.h
|
|
)
|
|
|
|
# using LXQt namespace in the public headers.
|
|
set(PUB_HEADERS
|
|
lxqtpanelglobals.h
|
|
pluginsettings.h
|
|
ilxqtpanelplugin.h
|
|
ilxqtpanel.h
|
|
)
|
|
|
|
set(SOURCES
|
|
main.cpp
|
|
panelpluginsmodel.cpp
|
|
windownotifier.cpp
|
|
lxqtpanel.cpp
|
|
lxqtpanelapplication.cpp
|
|
lxqtpanellayout.cpp
|
|
plugin.cpp
|
|
pluginsettings.cpp
|
|
popupmenu.cpp
|
|
pluginmoveprocessor.cpp
|
|
lxqtpanelpluginconfigdialog.cpp
|
|
config/configpaneldialog.cpp
|
|
config/configpanelwidget.cpp
|
|
config/configpluginswidget.cpp
|
|
config/addplugindialog.cpp
|
|
)
|
|
|
|
set(UI
|
|
config/configpanelwidget.ui
|
|
config/configpluginswidget.ui
|
|
config/addplugindialog.ui
|
|
)
|
|
|
|
set(LIBRARIES
|
|
lxqt
|
|
)
|
|
|
|
file(GLOB CONFIG_FILES resources/*.conf)
|
|
|
|
############################################
|
|
|
|
add_definitions(-DCOMPILE_LXQT_PANEL)
|
|
|
|
set(PLUGIN_DESKTOPS_DIR "${CMAKE_INSTALL_FULL_DATAROOTDIR}/lxqt/${PROJECT}")
|
|
add_definitions(-DPLUGIN_DESKTOPS_DIR=\"${PLUGIN_DESKTOPS_DIR}\")
|
|
|
|
project(${PROJECT})
|
|
|
|
set(QTX_LIBRARIES Qt5::Widgets Qt5::Xml Qt5::DBus)
|
|
|
|
# Translations
|
|
lxqt_translate_ts(QM_FILES SOURCES
|
|
UPDATE_TRANSLATIONS
|
|
${UPDATE_TRANSLATIONS}
|
|
SOURCES
|
|
${PUB_HEADERS}
|
|
${PRIV_HEADERS}
|
|
${SOURCES}
|
|
${UI}
|
|
INSTALL_DIR
|
|
"${LXQT_TRANSLATIONS_DIR}/${PROJECT_NAME}"
|
|
PULL_TRANSLATIONS
|
|
${PULL_TRANSLATIONS}
|
|
CLEAN_TRANSLATIONS
|
|
${CLEAN_TRANSLATIONS}
|
|
TRANSLATIONS_REPO
|
|
${TRANSLATIONS_REPO}
|
|
TRANSLATIONS_REFSPEC
|
|
${TRANSLATIONS_REFSPEC}
|
|
REPO_SUBDIR
|
|
"${PROJECT_NAME}/panel"
|
|
)
|
|
|
|
lxqt_app_translation_loader(SOURCES ${PROJECT_NAME})
|
|
|
|
add_executable(${PROJECT}
|
|
${PUB_HEADERS}
|
|
${PRIV_HEADERS}
|
|
${QM_FILES}
|
|
${SOURCES}
|
|
${UI}
|
|
)
|
|
|
|
target_link_libraries(${PROJECT}
|
|
${LIBRARIES}
|
|
${QTX_LIBRARIES}
|
|
KF5::WindowSystem
|
|
${STATIC_PLUGINS}
|
|
)
|
|
|
|
install(TARGETS ${PROJECT} RUNTIME DESTINATION bin)
|
|
install(FILES ${CONFIG_FILES} DESTINATION ${LXQT_ETC_XDG_DIR}/lxqt)
|
|
install(FILES ${PUB_HEADERS} DESTINATION include/lxqt)
|
|
install(FILES
|
|
man/lxqt-panel.1
|
|
DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
|
|
COMPONENT Runtime
|
|
)
|