-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
48 lines (31 loc) · 1.22 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
project(kmuddy)
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 1.6.0 REQUIRED CONFIG)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR} ${ECM_MODULE_PATH})
include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(FeatureSummary)
include(ECMInstallIcons)
find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets Script Multimedia)
find_package(KF5 REQUIRED COMPONENTS Config CoreAddons WidgetsAddons I18n KIO KDELibs4Support KCMUtils XmlGui Parts Service IconThemes Archive)
find_package(MXP)
if (MXP_FOUND)
message(STATUS "Found the MXP library at " ${MXP_LIBRARIES})
set(HAVE_MXP TRUE)
else (MXP_FOUND)
message(STATUS "MXP library was NOT found.")
endif (MXP_FOUND)
configure_file(config-mxp.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-mxp.h )
#set(CMAKE_VERBOSE_MAKEFILE ON)
add_definitions(${QT_DEFINITIONS})
#include(ConvenienceLibs.cmake)
# for config-*.h files
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
add_subdirectory( libs )
add_subdirectory( kmuddy )
add_subdirectory( plugins )
add_subdirectory( scripting )
########### install files ###############
install ( FILES muds.xml DESTINATION ${KDE_INSTALL_DATADIR}/kmuddy )
ki18n_install(po)