2017-07-11 14:28:15 +02:00
|
|
|
# Shared CMake core for finding KPMCore
|
|
|
|
#
|
|
|
|
# This is wrapped into a CMake include file because there's a bunch of
|
|
|
|
# pre-requisites that need searching for before looking for KPMCore.
|
|
|
|
# If you just do find_package( KPMCore ) without finding the things
|
|
|
|
# it links against first, you get CMake errors.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
find_package(ECM 5.10.0 REQUIRED NO_MODULE)
|
|
|
|
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_MODULE_PATH})
|
|
|
|
|
|
|
|
include(KDEInstallDirs)
|
|
|
|
include(GenerateExportHeader)
|
|
|
|
find_package( KF5 REQUIRED CoreAddons )
|
2017-09-30 18:08:38 +02:00
|
|
|
find_package( KF5 REQUIRED Config I18n Service WidgetsAddons )
|
2017-07-11 14:28:15 +02:00
|
|
|
|
2017-09-30 18:08:38 +02:00
|
|
|
find_package( KPMcore 3.2 REQUIRED )
|