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.
43 lines
1.1 KiB
43 lines
1.1 KiB
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
|
|
|
|
project(lxqt-notificationd)
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
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(Qt5DBus REQUIRED)
|
|
find_package(Qt5LinguistTools REQUIRED)
|
|
find_package(Qt5Widgets REQUIRED)
|
|
message(STATUS "Building with Qt${Qt5Core_VERSION}")
|
|
|
|
find_package(KF5WindowSystem REQUIRED)
|
|
|
|
find_package(lxqt REQUIRED)
|
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
set(CMAKE_BUILD_TYPE Release)
|
|
endif()
|
|
|
|
# Patch Version
|
|
set(LXQT_NOTIFICATIOND_PATCH_VERSION 0)
|
|
|
|
set(LXQT_NOTIFICATIOND_VERSION ${LXQT_MAJOR_VERSION}.${LXQT_MINOR_VERSION}.${LXQT_NOTIFICATIOND_PATCH_VERSION})
|
|
add_definitions("-DLXQT_NOTIFICATIOND_VERSION=\"${LXQT_NOTIFICATIOND_VERSION}\"")
|
|
|
|
include(LXQtCompilerSettings NO_POLICY_SCOPE)
|
|
|
|
# Translations **********************************
|
|
include(LXQtTranslate)
|
|
|
|
add_subdirectory(config)
|
|
add_subdirectory(src)
|
|
|
|
## merged from lxqt-common
|
|
add_subdirectory(autostart)
|