* Removed some build dependencies - cmake - liblxqt0-dev - libqt5xdg-dev - libqt5xdgiconloader-dev - pkg-config - qttools5-dev - qttools5-dev-tools * Added build dependency lxqt-build-tools (>= 0.3.0)ubuntu/bionic debian/0.11.1-1
parent
651f286425
commit
97ad9b98d7
@ -1,2 +0,0 @@
|
|||||||
build
|
|
||||||
*.kdev4
|
|
@ -1,28 +1,25 @@
|
|||||||
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
|
||||||
project(lxqt-qtplugin)
|
project(lxqt-qtplugin)
|
||||||
|
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
|
set(LXQTBT_MINIMUM_VERSION "0.1.0")
|
||||||
|
|
||||||
|
set(CMAKE_AUTOMOC ON)
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
set(CMAKE_AUTOMOC ON)
|
|
||||||
|
|
||||||
find_package(Qt5Widgets REQUIRED QUIET)
|
find_package(Qt5Widgets REQUIRED QUIET)
|
||||||
find_package(Qt5LinguistTools REQUIRED QUIET)
|
find_package(Qt5LinguistTools REQUIRED QUIET)
|
||||||
find_package(Qt5DBus REQUIRED QUIET)
|
find_package(Qt5DBus REQUIRED QUIET)
|
||||||
find_package(dbusmenu-qt5 REQUIRED QUIET)
|
find_package(dbusmenu-qt5 REQUIRED QUIET)
|
||||||
|
find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED)
|
||||||
find_package(lxqt REQUIRED QUIET)
|
|
||||||
find_package(Qt5XdgIconLoader REQUIRED QUIET)
|
find_package(Qt5XdgIconLoader REQUIRED QUIET)
|
||||||
|
|
||||||
include(LXQtCompilerSettings NO_POLICY_SCOPE)
|
include(LXQtCompilerSettings NO_POLICY_SCOPE)
|
||||||
|
|
||||||
add_subdirectory(src)
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
|
set(CMAKE_BUILD_TYPE Release)
|
||||||
|
endif()
|
||||||
|
|
||||||
# building tarball with CPack -------------------------------------------------
|
add_subdirectory(src)
|
||||||
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)
|
|
||||||
|
Loading…
Reference in new issue