blob: 3f47facdd23e765e710a95b078c0099cc8ed2918 (
plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
#################################################
#
# (C) 2013 Alexander Golubev
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
##### set project version ########################
include( TDEVersion )
cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} )
tde_set_project_version( )
##### general package setup #####################
project( tdeaddons )
##### include essential cmake modules ###########
include( FindPkgConfig )
include( FindThreads )
include( CheckIncludeFile )
include( CheckLibraryExists )
include( CheckSymbolExists )
include( CheckCXXSourceCompiles )
##### include our cmake modules #################
include( TDEMacros )
##### setup install paths #######################
include( TDESetupPaths )
tde_setup_paths( )
##### optional stuff ############################
option( WITH_ALL_OPTIONS "Enable all sane optional stuff" OFF )
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
option( WITH_ARTS "Enable aRts support" ${WITH_ALL_OPTIONS} )
option( WITH_SDL "Enable SDL support" ${WITH_ALL_OPTIONS} )
option( WITH_BERKELEY_DB "Enable Berkeley DB support" ${WITH_ALL_OPTIONS} )
option( WITH_XMMS "Enable xmms support" OFF )
option( WITH_TEST "Build tests" OFF )
##### options comments ##########################
# WITH_XMMS affects kicker-applets
# WITH_XMMS description enables kicker multimedia-control applet to interact
# with xmms
# WITH_ARTS affects konq-plugins/sidebar/mediaplayer, noatun plugins
# WITH_SDL affects noatun plugins
# WITH_BERKELEY_DB affects noatun plugins
# WITH_TEST affects konq-plugins/fsview
# NOTE: WITH_XMMS supports only obsolte xmms version 1
##### user requested modules ####################
option( BUILD_ALL "Build all" OFF )
option( BUILD_ATLANTIKDESIGNER "Build atlantikdesigner" ${BUILD_ALL} ) # need tdegames
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
option( BUILD_KADDRESSBOOK_PLUGINS "Build kaddressbook plugins" ${BUILD_ALL} ) # requires tdepim
option( BUILD_KATE_PLUGINS "Build kate plugins" ${BUILD_ALL} )
option( BUILD_KICKER_APPLETS "Build kicker applets" ${BUILD_ALL} )
option( BUILD_KNEWSTICKER_SCRIPTS "Install additional knewsticker scripts" ${BUILD_ALL} )
option( BUILD_KONQ_PLUGINS "Build konqueror plugins" ${BUILD_ALL} )
option( BUILD_KSIG "Build kde email signature manager" ${BUILD_ALL} )
option( BUILD_NOATUN_PLUGINS "Build noatun plugins" ${BUILD_ALL} ) # need tdemultimedia
option( BUILD_RENAMEDLG_PLUGINS "Build KRenameDlg plugins" ${BUILD_ALL} )
option( BUILD_TDEFILE_PLUGINS "Build additional tdefileplugins" ${BUILD_ALL} )
option( BUILD_TUTORIALS "Build tutorial help handbooks" OFF )
##### configure checks ##########################
include( ConfigureChecks.cmake )
###### global compiler settings #################
add_definitions(
-DHAVE_CONFIG_H
)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
if( WITH_TEST )
enable_testing()
endif( WITH_TEST )
##### tdeaddons directories #####################
tde_conditional_add_subdirectory( BUILD_ATLANTIKDESIGNER atlantikdesigner )
tde_conditional_add_subdirectory( BUILD_DOC doc )
tde_conditional_add_subdirectory( BUILD_KADDRESSBOOK_PLUGINS kaddressbook-plugins )
tde_conditional_add_subdirectory( BUILD_KATE_PLUGINS kate )
tde_conditional_add_subdirectory( BUILD_KICKER_APPLETS kicker-applets )
tde_conditional_add_subdirectory( BUILD_KNEWSTICKER_SCRIPTS knewsticker-scripts )
tde_conditional_add_subdirectory( BUILD_KONQ_PLUGINS konq-plugins )
tde_conditional_add_subdirectory( BUILD_KSIG ksig )
tde_conditional_add_subdirectory( BUILD_NOATUN_PLUGINS noatun-plugins )
tde_conditional_add_subdirectory( BUILD_RENAMEDLG_PLUGINS renamedlgplugins )
tde_conditional_add_subdirectory( BUILD_TDEFILE_PLUGINS tdefile-plugins )
tde_conditional_add_subdirectory( BUILD_TUTORIALS tutorials )
##### write configure files #####################
configure_file( config.h.cmake config.h @ONLY )
|