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.
67 lines
1.3 KiB
67 lines
1.3 KiB
project(lxqt-session)
|
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
set(CMAKE_BUILD_TYPE Release)
|
|
endif()
|
|
|
|
include(LxQtLibSuffix)
|
|
|
|
include_directories(
|
|
${CMAKE_SOURCE_DIR}
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${XCB_INCLUDE_DIRS}
|
|
${X11_INCLUDE_DIR}
|
|
src
|
|
)
|
|
|
|
set(lxqt-session_HDRS "")
|
|
|
|
set(lxqt-session_SRCS
|
|
src/main.cpp
|
|
src/lxqtmodman.cpp
|
|
src/wmselectdialog.cpp
|
|
src/windowmanager.cpp
|
|
src/sessionapplication.cpp
|
|
src/sessiondbusadaptor.h
|
|
)
|
|
|
|
set(lxqt-session_UI
|
|
src/wmselectdialog.ui
|
|
)
|
|
|
|
# Translations
|
|
lxqt_translate_ts(lxqt-session_QM_FILES
|
|
UPDATE_TRANSLATIONS
|
|
${UPDATE_TRANSLATIONS}
|
|
SOURCES
|
|
${lxqt-session_HDRS}
|
|
${lxqt-session_SRCS}
|
|
${lxqt-session_UI}
|
|
INSTALL_DIR
|
|
"${LXQT_TRANSLATIONS_DIR}/${PROJECT_NAME}"
|
|
)
|
|
lxqt_app_translation_loader(lxqt-session_QM_LOADER ${PROJECT_NAME})
|
|
|
|
qt5_wrap_ui(UIS ${lxqt-session_UI})
|
|
|
|
add_executable(lxqt-session
|
|
${lxqt-session_SRCS}
|
|
${UIS}
|
|
${RSCS}
|
|
${lxqt-session_QM_FILES}
|
|
${lxqt-session_QM_LOADER}
|
|
)
|
|
|
|
target_link_libraries(lxqt-session
|
|
Qt5::Widgets
|
|
Qt5::DBus
|
|
Qt5::X11Extras
|
|
${XCB_LIBRARIES}
|
|
${X11_LIBRARIES}
|
|
${LXQT_LIBRARIES}
|
|
${QTXDG_LIBRARIES}
|
|
KF5::WindowSystem
|
|
)
|
|
INSTALL(TARGETS lxqt-session RUNTIME DESTINATION bin)
|