|
|
|
@ -2,33 +2,28 @@ cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
|
|
|
|
|
|
|
|
|
|
project(lxqt-notificationd)
|
|
|
|
|
|
|
|
|
|
option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF)
|
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
|
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|
|
|
|
|
|
option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF)
|
|
|
|
|
|
|
|
|
|
find_package(Qt5Widgets REQUIRED QUIET)
|
|
|
|
|
find_package(Qt5DBus REQUIRED QUIET)
|
|
|
|
|
find_package(Qt5DBus REQUIRED)
|
|
|
|
|
find_package(Qt5LinguistTools REQUIRED QUIET)
|
|
|
|
|
find_package(KF5WindowSystem REQUIRED QUIET)
|
|
|
|
|
find_package(Qt5Widgets REQUIRED)
|
|
|
|
|
message(STATUS "Building with Qt${Qt5Core_VERSION_STRING}")
|
|
|
|
|
|
|
|
|
|
find_package(lxqt REQUIRED QUIET)
|
|
|
|
|
find_package(KF5WindowSystem REQUIRED)
|
|
|
|
|
|
|
|
|
|
find_package(lxqt REQUIRED)
|
|
|
|
|
|
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
|
include(LXQtCompilerSettings NO_POLICY_SCOPE)
|
|
|
|
|
|
|
|
|
|
# Translations **********************************
|
|
|
|
|
include(LXQtTranslate)
|
|
|
|
|
|
|
|
|
|
add_subdirectory(src)
|
|
|
|
|
add_subdirectory(config)
|
|
|
|
|
|
|
|
|
|
# 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)
|
|
|
|
|
add_subdirectory(src)
|
|
|
|
|