Port to KF5, step 1: CMakeLists
This commit is contained in:
parent
6533b64a22
commit
2d8d230170
3 changed files with 58 additions and 40 deletions
|
@ -1,29 +1,41 @@
|
|||
project(danbooru_client)
|
||||
|
||||
cmake_minimum_required(VERSION 2.8.6 FATAL_ERROR)
|
||||
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
|
||||
|
||||
set(danbooru_client_VERSION_MAJOR 0)
|
||||
set(danbooru_client_VERSION_MINOR 1)
|
||||
set(danbooru_client_VERSION_MINOR 2)
|
||||
|
||||
find_package(KDE4 REQUIRED)
|
||||
find_package(QJSON)
|
||||
find_package (ECM REQUIRED NO_MODULE)
|
||||
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
|
||||
|
||||
include (KDE4Defaults)
|
||||
include (FeatureSummary)
|
||||
set(REQUIRED_QT_VERSION "5.3.0")
|
||||
set(KF5_VERSION "5.3.0")
|
||||
|
||||
set_package_properties(KDE4 PROPERTIES DESCRIPTION "The KDE libraries"
|
||||
URL "http://www.kde.org" TYPE REQUIRED
|
||||
PURPOSE "Required to build Danbooru Client")
|
||||
set_package_properties(QJSON PROPERTIES DESCRIPTION "The QJSON library"
|
||||
URL "http://qjson.sourceforge.net" TYPE REQUIRED
|
||||
PURPOSE "Required to build Danbooru Client")
|
||||
# Qt dependencies
|
||||
|
||||
find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED
|
||||
Core
|
||||
Widgets)
|
||||
|
||||
include_directories( ${KDE4_INCLUDES} ${QT_INCLUDES} )
|
||||
# KF5 dependencies
|
||||
|
||||
find_package(KF5 ${KF5_VERSION} REQUIRED
|
||||
IconThemes # Handling of icons
|
||||
CoreAddons # Caches
|
||||
TextWidgets #
|
||||
XmlGui # User interface
|
||||
ConfigWidgets # Handling of configuration
|
||||
KIOCore # Jobs
|
||||
KDELibs4Support # Transitional
|
||||
)
|
||||
|
||||
include(ECMInstallIcons)
|
||||
include(KDEInstallDirs)
|
||||
include(KDECompilerSettings)
|
||||
include(KDECMakeSettings)
|
||||
include(FeatureSummary)
|
||||
|
||||
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
||||
add_definitions(-DQT_USE_QSTRINGBUILDER)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
#add_subdirectory( doc )
|
||||
add_subdirectory( src )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue