You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lxqt-session-packaging/lxqt-config-session/CMakeLists.txt

82 lines
1.8 KiB

project(lxqt-config-session)
include_directories(
"${CMAKE_SOURCE_DIR}"
"${CMAKE_CURRENT_BINARY_DIR}"
"${CMAKE_CURRENT_SOURCE_DIR}"
)
set(lxqt-sessioncfg_HDRS
sessionconfigwindow.h
basicsettings.h
modulemodel.h
autostartpage.h
autostartmodel.h
autostartitem.h
autostartedit.h
defaultappspage.h
environmentpage.h
)
set(lxqt-sessioncfg_SRCS
main.cpp
sessionconfigwindow.cpp
basicsettings.cpp
modulemodel.cpp
autostartpage.cpp
autostartmodel.cpp
autostartitem.cpp
autostartedit.cpp
defaultappspage.cpp
environmentpage.cpp
../lxqt-session/src/windowmanager.cpp
)
set(lxqt-sessioncfg_UI_FILES
basicsettings.ui
autostartpage.ui
autostartedit.ui
defaultappspage.ui
environmentpage.ui
)
qt5_wrap_ui(lxqt-sessioncfg_UIS ${lxqt-sessioncfg_UI_FILES})
# Translations
lxqt_translate_ts(lxqt-sessioncfg_QM_FILES
UPDATE_TRANSLATIONS
${UPDATE_TRANSLATIONS}
SOURCES
${lxqt-sessioncfg_HDRS}
${lxqt-sessioncfg_SRCS}
${lxqt-sessioncfg_UI_FILES}
INSTALL_DIR
"${LXQT_TRANSLATIONS_DIR}/${PROJECT_NAME}"
)
lxqt_app_translation_loader(lxqt-sessioncfg_QM_LOADER ${PROJECT_NAME})
lxqt_translate_desktop(lxqt-sessioncfg_DESKTOP_FILES SOURCES lxqt-config-session.desktop.in)
add_executable(lxqt-config-session
${lxqt-sessioncfg_SRCS}
${lxqt-sessioncfg_UIS}
${lxqt-sessioncfg_DESKTOP_FILES}
${lxqt-sessioncfg_QM_FILES}
${lxqt-sessioncfg_QM_LOADER})
target_link_libraries(lxqt-config-session
KF5::WindowSystem
Qt5::Widgets
Qt5::DBus
Qt5::X11Extras
${LXQT_LIBRARIES}
${QTXDG_LIBRARIES}
)
INSTALL(TARGETS lxqt-config-session RUNTIME DESTINATION bin)
install(FILES
${lxqt-sessioncfg_DESKTOP_FILES}
DESTINATION
${CMAKE_INSTALL_PREFIX}/share/applications
)