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-session/CMakeLists.txt

88 lines
1.7 KiB

project(lxqt-session)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
if(LIBUDEV_MONITOR)
set(LIBUDEV_MONITOR Yes)
find_package(PkgConfig)
pkg_check_modules(LIBUDEV REQUIRED libudev)
include_directories(${LIBUDEV_INCLUDE_DIRS})
add_definitions(-DWITH_LIBUDEV_MONITOR)
endif()
include_directories(
${XCB_INCLUDE_DIRS}
${X11_INCLUDE_DIR}
)
if(LIBUDEV_MONITOR)
include_directories(${LIBUDEV_INCLUDE_DIRS})
endif()
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
src/numlock.cpp
src/numlock.h
)
if(LIBUDEV_MONITOR)
list(APPEND lxqt-session_SRCS src/UdevNotifier.cpp)
endif()
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})
add_executable(lxqt-session
${lxqt-session_SRCS}
${RSCS}
${lxqt-session_QM_FILES}
${lxqt-session_QM_LOADER}
)
target_link_libraries(lxqt-session
Qt5::Widgets
Qt5::DBus
Qt5::X11Extras
${XCB_LDFLAGS}
X11
lxqt
KF5::WindowSystem
)
if(LIBUDEV_MONITOR)
target_link_libraries(lxqt-session ${LIBUDEV_LDFLAGS})
endif()
INSTALL(TARGETS
lxqt-session
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
COMPONENT Runtime
)
install(FILES
man/lxqt-session.1
DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
COMPONENT Runtime
)