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.
44 lines
1.3 KiB
44 lines
1.3 KiB
cmake_minimum_required(VERSION 2.8.11)
|
|
|
|
project(lxqt-session)
|
|
|
|
option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF)
|
|
|
|
# additional cmake files
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
find_package(KF5WindowSystem REQUIRED)
|
|
find_package(Qt5Widgets REQUIRED QUIET)
|
|
find_package(Qt5DBus REQUIRED QUIET)
|
|
find_package(Qt5X11Extras REQUIRED QUIET)
|
|
find_package(Qt5LinguistTools REQUIRED QUIET)
|
|
find_package(Qt5Xdg REQUIRED QUIET)
|
|
|
|
find_package(lxqt REQUIRED QUIET)
|
|
include(${LXQT_USE_FILE})
|
|
|
|
include(LXQtTranslate)
|
|
|
|
find_package(PkgConfig REQUIRED QUIET)
|
|
pkg_check_modules(XCB REQUIRED xcb)
|
|
find_package(X11 REQUIRED)
|
|
|
|
add_subdirectory(lxqt-session)
|
|
add_subdirectory(lxqt-config-session)
|
|
add_subdirectory(lxqtleave)
|
|
|
|
# building tarball with CPack -------------------------------------------------
|
|
include(InstallRequiredSystemLibraries)
|
|
set(CPACK_PACKAGE_VERSION_MAJOR ${LXQT_MAJOR_VERSION})
|
|
set(CPACK_PACKAGE_VERSION_MINOR ${LXQT_MINOR_VERSION})
|
|
set(CPACK_PACKAGE_VERSION_PATCH ${LXQT_PATCH_VERSION})
|
|
set(CPACK_GENERATOR TBZ2)
|
|
set(CPACK_SOURCE_GENERATOR TBZ2)
|
|
set(CPACK_SOURCE_IGNORE_FILES /build/;.gitignore;.*~;.git;.kdev4;temp)
|
|
include(CPack)
|
|
|