Subversion Repositories Scribus

Rev

Rev 12559 | Rev 12675 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10215 cbradney 1
##############################################################################################################
2
########## CMake Setup                                                                              ##########
3
 
9680 cbradney 4
#Set our CMake minimum version
5758 cbradney 5
#Require 2.4.2 for Qt finding
9680 cbradney 6
#Require 2.4.3 for moc change detection and rpath updates for custom cairo install
8499 cbradney 7
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5 FATAL_ERROR)
5758 cbradney 8
 
10818 craig 9
IF(WIN32)
12131 cbradney 10
  IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 2.6)
11
    MESSAGE(FATAL_ERROR "Windows builds require CMake 2.6")
12
  ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 2.6)
10818 craig 13
ENDIF(WIN32)
14
 
9680 cbradney 15
#Pretty colors
5142 cbradney 16
SET(CMAKE_COLOR_MAKEFILE ON)
9680 cbradney 17
#Dont force verbose
9715 avox 18
SET(CMAKE_VERBOSE_MAKEFILE OFF)
9680 cbradney 19
#Include current dir
5142 cbradney 20
SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
10459 cbradney 21
#RPATH setup - more below too
10327 cbradney 22
IF (WANT_NORPATH OR WANT_DISTROBUILD)
23
  SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
24
ELSE (WANT_NORPATH OR WANT_DISTROBUILD)
25
  SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
26
ENDIF (WANT_NORPATH OR WANT_DISTROBUILD)
10459 cbradney 27
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
9715 avox 28
SET(CMAKE_SKIP_RULE_DEPENDENCY TRUE)
8902 cbradney 29
SET(CMAKE_SKIP_BUILD_RPATH TRUE)
30
 
10215 cbradney 31
INCLUDE(CheckIncludeFile)
32
INCLUDE(CheckCCompilerFlag)
33
INCLUDE(CheckCXXCompilerFlag)
34
INCLUDE(CheckTypeSize)
35
INCLUDE(TestBigEndian)
36
 
9680 cbradney 37
#Set the custom CMake module directory where our include/lib finders are
5142 cbradney 38
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
9680 cbradney 39
 
10215 cbradney 40
##############################################################################################################
41
########## toplevel compiler flags                                                                  ##########
42
 
43
# CHECK_C_COMPILER_FLAG(" ${CMAKE_SHARED_LIBRARY_C_FLAGS}" C_HAVE_PIC)
44
# CHECK_CXX_COMPILER_FLAG(" ${CMAKE_SHARED_LIBRARY_C_FLAGS}" CXX_HAVE_PIC)
45
# IF (CXX_HAVE_PIC AND C_HAVE_PIC)
46
#     SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_SHARED_LIBRARY_C_FLAGS}")
47
#     SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_SHARED_LIBRARY_C_FLAGS}")
48
# ELSE (CXX_HAVE_PIC AND C_HAVE_PIC)
49
#     MESSAGE(FATAL_ERROR "Shared library support is missing")
50
# ENDIF (CXX_HAVE_PIC AND C_HAVE_PIC)
51
 
5142 cbradney 52
# SET(CMAKE_SHARED_MODULE_LINK_FLAGS "${CMAKE_SHARED_MODULE_LINK_FLAGS} -export-dynamic")
53
# SET(CMAKE_SHARED_MODULE_LINK_CXX_FLAGS "${CMAKE_SHARED_MODULE_LINK_CXX_FLAGS} -export-dynamic")
54
# SET(CMAKE_SHARED_LIBRARY_C_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS} -export-dynamic")
55
# SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS} -export-dynamic")
56
# MESSAGE(STATUS ${CMAKE_SHARED_MODULE_LINK_FLAGS})
57
# MESSAGE(STATUS ${CMAKE_SHARED_MODULE_LINK_CXX_FLAGS})
58
# MESSAGE(STATUS ${CMAKE_SHARED_LIBRARY_C_FLAGS})
59
# MESSAGE(STATUS ${CMAKE_SHARED_LIBRARY_CXX_FLAGS})
60
# MESSAGE(STATUS ${CMAKE_CXX_CREATE_SHARED_MODULE})
61
# MESSAGE(STATUS ${CMAKE_CXX_CREATE_SHARED_LIBRARY})
62
 
63
#IMPORT FROM COMMANDLINE
64
# SET with cmake -DWANT_CAIRO=1, etc
65
# MESSAGE(STATUS ${WANT_CAIRO})
66
# MESSAGE(STATUS ${WANT_LIBART})
67
# MESSAGE(STATUS ${WANT_DEBUG})
5157 cbradney 68
 
69
# SET(WANT_CAIRO 0)
70
# SET(WANT_LIBART 1)
71
 
9680 cbradney 72
#Project Setup
5142 cbradney 73
PROJECT(scribus)
9680 cbradney 74
#Set our version values
75
#Final version is ${VERSION} = ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${VERSION_SUFFIX}
76
#where VERSION_SUFFIX is of the form "", "cvs" or "Ncvs" (N being the minor patch level)
5396 cbradney 77
SET (VERSION_MAJOR "1")
78
SET (VERSION_MINOR "3")
8499 cbradney 79
SET (VERSION_PATCH "5")
9706 cbradney 80
SET (VERSION_SUFFIX "svn")
5407 cbradney 81
SET (VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${VERSION_SUFFIX})
82
MESSAGE(STATUS "Scribus ${VERSION} will be built to install into ${CMAKE_INSTALL_PREFIX}")
5142 cbradney 83
 
9680 cbradney 84
#Set the permissions to be used when installing plugins
5142 cbradney 85
SET(PLUGIN_PERMISSIONS WORLD_EXECUTE GROUP_EXECUTE OWNER_EXECUTE WORLD_READ GROUP_READ OWNER_READ OWNER_WRITE)
86
 
9680 cbradney 87
#Our main directory is scribus
5379 cbradney 88
SET(MAIN_DIR_NAME "scribus")
9680 cbradney 89
 
10215 cbradney 90
##############################################################################################################
10238 cbradney 91
########## check for the CPU we build for                                                           ##########
92
 
93
EXECUTE_PROCESS(
94
    COMMAND ${CMAKE_C_COMPILER} -dumpmachine
95
    OUTPUT_VARIABLE MACHINE
96
    OUTPUT_STRIP_TRAILING_WHITESPACE
97
)
98
 
99
STRING(REGEX MATCH "(i?86-*)|(athlon-*)|(pentium-*)" _machine_x86 "${MACHINE}")
100
IF (_machine_x86)
101
    MESSAGE(STATUS "Found target X86")
102
    SET(ARCH_X86 1)
103
ENDIF (_machine_x86)
104
 
105
STRING(REGEX MATCH "(x86_64-*)|(X86_64-*)|(AMD64-*)|(amd64-*)" _machine_x86_64 "${MACHINE}")
106
IF (_machine_x86_64)
107
    MESSAGE(STATUS "Found target X86_64")
108
    SET(ARCH_X86_64 1)
109
ENDIF (_machine_x86_64)
110
 
11407 cbradney 111
STRING(REGEX MATCH "(sparc64-*)|(SPARC64-*)" _machine_sparc_64 "${MACHINE}")
112
IF (_machine_sparc_64)
113
    MESSAGE(STATUS "Found target SPARC 64")
114
    SET(ARCH_SPARC_64 1)
115
ENDIF (_machine_sparc_64)
116
 
117
STRING(REGEX MATCH "(mips64-*)|(MIPS64-*)" _machine_mips_64 "${MACHINE}")
118
IF (_machine_mips_64)
119
    MESSAGE(STATUS "Found target MIPS 64")
120
    SET(ARCH_MIPS_64 1)
121
ENDIF (_machine_mips_64)
122
 
12570 cbradney 123
STRING(REGEX MATCH "(ppc-*)|(powerpc-*)" _machine_ppc "${MACHINE}")
10238 cbradney 124
IF (_machine_ppc)
125
    MESSAGE(STATUS "Found target PPC")
126
    SET(ARCH_PPC 1)
127
ENDIF (_machine_ppc)
128
 
12570 cbradney 129
STRING(REGEX MATCH "(ppc64-*)|(PPC64-*)|(powerpc64-*)" _machine_ppc_64 "${MACHINE}")
11407 cbradney 130
IF (_machine_ppc_64)
131
    MESSAGE(STATUS "Found target PPC64")
132
    SET(ARCH_PPC_64 1)
133
ENDIF (_machine_ppc_64)
134
 
12074 mrdocs 135
STRING(REGEX MATCH "(sparc-*)" _machine_sparc "${MACHINE}")
136
IF (_machine_sparc)
137
    MESSAGE(STATUS "Found target Sparc")
138
    SET(ARCH_SPARC 1)
139
ENDIF (_machine_sparc)
140
 
141
STRING(REGEX MATCH "(sparcv9-*)" _machine_sparcv9 "${MACHINE}")
142
IF (_machine_sparcv9)
143
    MESSAGE(STATUS "Found target Sparc v9")
144
    SET(ARCH_SPARCV9 1)
145
ENDIF (_machine_sparcv9)
146
 
147
STRING(REGEX MATCH "(sparc64-*)" _machine_sparc64 "${MACHINE}")
148
IF (_machine_sparc64)
149
    MESSAGE(STATUS "Found target Sparc64")
150
    SET(ARCH_SPARC64 1)
151
    SET(ARCH64BIT 1)
152
ENDIF (_machine_sparc64)
153
 
11407 cbradney 154
#convert any 64 bit build into generic 64 tag for below
155
IF (ARCH_X86_64 OR ARCH_SPARC_64 OR ARCH_MIPS_64 OR ARCH_PPC_64)
156
  SET(ARCH64BIT 1)
157
ENDIF (ARCH_X86_64 OR ARCH_SPARC_64 OR ARCH_MIPS_64 OR ARCH_PPC_64)
158
 
159
MESSAGE(STATUS "Building for target ${MACHINE}")
160
 
10238 cbradney 161
##############################################################################################################
10215 cbradney 162
########## Versioning Setup                                                                         ##########
163
 
9409 cbradney 164
#On Apple, we ignore the versioning tag so all items are "scribus" not "scribus-version"
9508 cbradney 165
IF (NOT BUILD_OSX_BUNDLE)
9680 cbradney 166
  SET(BUILD_OSX_BUNDLE ${APPLE} CACHE TYPE BOOL)
9508 cbradney 167
ENDIF (NOT BUILD_OSX_BUNDLE)
168
 
9680 cbradney 169
#Simplify future conditionals for Apple
170
IF (APPLE AND BUILD_OSX_BUNDLE)
171
  SET(APPLEBUNDLE TRUE CACHE TYPE BOOL)
172
ENDIF (APPLE AND BUILD_OSX_BUNDLE)
173
 
174
#Announce we cached a version request before, overridden below for OSX
9508 cbradney 175
IF(TAG_VERSION)
9680 cbradney 176
  IF (NOT APPLEBUNDLE)
177
    MESSAGE(STATUS "Previously selected version tag: ${TAG_VERSION}")
178
  ENDIF (NOT APPLEBUNDLE)
6891 cbradney 179
  SET(WANT_VERSIONING 1)
180
  SET(CACHED_VERSIONING 1)
9508 cbradney 181
ENDIF(TAG_VERSION)
182
 
9680 cbradney 183
#Remove version tags on OSX so our bundle is Scribus.app
184
IF (APPLEBUNDLE)
185
  IF (WANT_VERSIONING OR CACHED_VERSIONING)
186
    MESSAGE(STATUS "Ignoring version tag on OSX when building bundle")
187
    SET(WANT_VERSIONING 0)
188
    SET(CACHED_VERSIONING 0)
189
  ENDIF (WANT_VERSIONING OR CACHED_VERSIONING)
190
ENDIF (APPLEBUNDLE)
9508 cbradney 191
 
9680 cbradney 192
#Store our version string if require
6891 cbradney 193
IF (WANT_VERSIONING AND NOT CACHED_VERSIONING)
5396 cbradney 194
  IF (NOT CUSTOM_VERSIONTAG)
6891 cbradney 195
    SET(TAG_VERSION "-${VERSION}" CACHE TYPE STRING)
5396 cbradney 196
  ELSE (NOT CUSTOM_VERSIONTAG)
6891 cbradney 197
    SET(TAG_VERSION ${CUSTOM_VERSIONTAG} CACHE TYPE STRING)
5396 cbradney 198
  ENDIF (NOT CUSTOM_VERSIONTAG)
6891 cbradney 199
ENDIF (WANT_VERSIONING AND NOT CACHED_VERSIONING)
5379 cbradney 200
 
10215 cbradney 201
##############################################################################################################
202
########## Install/Directory Setup                                                                  ##########
203
 
12457 avox 204
IF (APPLEBUNDLE)
205
  IF ("${CMAKE_INSTALL_PREFIX}" MATCHES "[.]app/Contents/?$")
206
    # all ok
207
  ELSE ("${CMAKE_INSTALL_PREFIX}" MATCHES "[.]app/Contents/?$")
208
    IF ("${CMAKE_INSTALL_PREFIX}" MATCHES "[.]app/?$")
209
      # add "/Contents" subpath
210
      SET(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/Contents")
211
    ELSE ("${CMAKE_INSTALL_PREFIX}" MATCHES "[.]app/?$")
212
      # no bundle name spcified, use appname and version
213
      SET(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/Scribus${VERSION}.app/Contents")
214
    ENDIF ("${CMAKE_INSTALL_PREFIX}" MATCHES "[.]app/?$")
215
  ENDIF ("${CMAKE_INSTALL_PREFIX}" MATCHES "[.]app/Contents/?$")
216
 
217
  MESSAGE(STATUS "APPLEBUNDLE install prefix: ${CMAKE_INSTALL_PREFIX}")
218
ENDIF (APPLEBUNDLE)
219
 
220
 
9680 cbradney 221
#Setp all the directories we will use
7269 cbradney 222
#MAN
223
SET(MANDIR "share/man/")
6893 cbradney 224
SET(SHAREDIR "share/${MAIN_DIR_NAME}${TAG_VERSION}/")
5142 cbradney 225
ADD_DEFINITIONS("-DSHAREDIR=\\\"${CMAKE_INSTALL_PREFIX}/${SHAREDIR}\\\"")
9680 cbradney 226
 
9409 cbradney 227
#SHARE - use the default on Apple as TAG_VERSION is empty
228
IF(TAG_VERSION OR BUILD_OSX_BUNDLE)
7269 cbradney 229
  SET(DOCDIR "share/doc/${MAIN_DIR_NAME}${TAG_VERSION}/")
9409 cbradney 230
ELSE(TAG_VERSION OR BUILD_OSX_BUNDLE)
7269 cbradney 231
  SET(DOCDIR "share/doc/${MAIN_DIR_NAME}-${VERSION}/")
9409 cbradney 232
ENDIF (TAG_VERSION OR BUILD_OSX_BUNDLE)
5142 cbradney 233
ADD_DEFINITIONS("-DDOCDIR=\\\"${CMAKE_INSTALL_PREFIX}/${DOCDIR}\\\"")
9680 cbradney 234
 
7269 cbradney 235
#ICON
10779 craig 236
IF(WIN32)
237
  SET(ICONDIR "share/icons/")
238
ELSE(WIN32)
239
  SET(ICONDIR "share/${MAIN_DIR_NAME}${TAG_VERSION}/icons/")
240
ENDIF(WIN32)
5142 cbradney 241
ADD_DEFINITIONS("-DICONDIR=\\\"${CMAKE_INSTALL_PREFIX}/${ICONDIR}\\\"")
9680 cbradney 242
 
7269 cbradney 243
#SAMPLES
5379 cbradney 244
SET(SAMPLESDIR "share/${MAIN_DIR_NAME}${TAG_VERSION}/samples/")
5142 cbradney 245
ADD_DEFINITIONS("-DSAMPLESDIR=\\\"${CMAKE_INSTALL_PREFIX}/${SAMPLESDIR}\\\"")
9680 cbradney 246
 
7269 cbradney 247
#SCRIPTS
5379 cbradney 248
SET(SCRIPTSDIR "share/${MAIN_DIR_NAME}${TAG_VERSION}/scripts/")
5142 cbradney 249
ADD_DEFINITIONS("-DSCRIPTSDIR=\\\"${CMAKE_INSTALL_PREFIX}/${SCRIPTSDIR}\\\"")
9680 cbradney 250
 
7269 cbradney 251
#TEMPLATES
10779 craig 252
IF(WIN32)
253
  SET(TEMPLATEDIR "share/templates/")
254
ELSE(WIN32)
255
  SET(TEMPLATEDIR "share/${MAIN_DIR_NAME}${TAG_VERSION}/templates/")
256
ENDIF(WIN32)
5142 cbradney 257
ADD_DEFINITIONS("-DTEMPLATEDIR=\\\"${CMAKE_INSTALL_PREFIX}/${TEMPLATEDIR}\\\"")
9680 cbradney 258
 
9660 cbradney 259
#DESKTOP
9653 mrdocs 260
SET(DESKTOPDIR "share/applications/")
261
ADD_DEFINITIONS("-DDESKTOPDIR=\\\"${CMAKE_INSTALL_PREFIX}/${DESKTOPDIR}\\\"")
9680 cbradney 262
 
10161 cbradney 263
#LIB LOCATION - lib or lib64 normally
7269 cbradney 264
#LIB
10161 cbradney 265
IF(WANT_LIB64)
10239 cbradney 266
  IF(NOT ARCH_X86_64)
267
    MESSAGE(STATUS "WARNING: BUILDING 64 Bit build on non 64 bit architecture")
268
  ENDIF(NOT ARCH_X86_64)
269
  SET(LIB_SUFFIX "64" CACHE TYPE STRING)
10161 cbradney 270
ENDIF(WANT_LIB64)
10239 cbradney 271
SET(LIB_DIR_NAME "lib${LIB_SUFFIX}")
10161 cbradney 272
SET(LIBDIR "${LIB_DIR_NAME}/${MAIN_DIR_NAME}${TAG_VERSION}/")
5142 cbradney 273
ADD_DEFINITIONS("-DLIBDIR=\\\"${CMAKE_INSTALL_PREFIX}/${LIBDIR}\\\"")
9680 cbradney 274
 
7269 cbradney 275
#PLUGINS
10779 craig 276
IF(WIN32)
10781 craig 277
  SET(PLUGINDIR "plugins")
278
ELSE(WIN32)
10779 craig 279
  SET(PLUGINDIR "${LIB_DIR_NAME}/${MAIN_DIR_NAME}${TAG_VERSION}/plugins/")
280
ENDIF(WIN32)
5142 cbradney 281
ADD_DEFINITIONS("-DPLUGINDIR=\\\"${CMAKE_INSTALL_PREFIX}/${PLUGINDIR}\\\"")
9680 cbradney 282
 
9660 cbradney 283
#INCLUDE
284
SET(INCLUDEDIR "include/${MAIN_DIR_NAME}${TAG_VERSION}/")
285
#NO ADD DEFINITIONS, WE ONLY INSTALL WITH IT
9680 cbradney 286
 
7269 cbradney 287
#RPATH
10459 cbradney 288
IF (WANT_NORPATH OR WANT_DISTROBUILD)
289
  set(CMAKE_INSTALL_RPATH "")
290
ELSE (WANT_NORPATH OR WANT_DISTROBUILD)
291
  set(CMAKE_INSTALL_RPATH ${PLUGINDIR})
292
ENDIF (WANT_NORPATH OR WANT_DISTROBUILD)
5142 cbradney 293
 
6319 mrdocs 294
# Set the XDG mime stuff
6320 mrdocs 295
SET(MIMEDIR "share/mime/packages/")
11715 malex 296
SET(MIMELNKDIR "share/mimelnk/application/")
6319 mrdocs 297
 
10215 cbradney 298
##############################################################################################################
299
########## Build Setup                                                                              ##########
6319 mrdocs 300
 
9680 cbradney 301
#Convert our simpler command line option to the CMake style
5142 cbradney 302
#None, Debug, Release, .. or custom ones
7943 cbradney 303
# SET(WANT_DEBUG 1)
5142 cbradney 304
IF(WANT_DEBUG)
305
  SET(CMAKE_BUILD_TYPE Debug)
306
ELSE(WANT_DEBUG)
307
  SET(CMAKE_BUILD_TYPE RELEASE)
308
ENDIF(WANT_DEBUG)
309
 
9680 cbradney 310
#Based on our build type, setup our build options
5468 avox 311
IF(APPLE)
10750 craig 312
  # gcc/mac
12556 cbradney 313
  IF(WANT_UNIVERSAL_BUNDLE)
314
    MESSAGE("Setting Universal (PPC/i386) Architecture for OSX Build/Bundle")
315
    SET(CMAKE_OSX_ARCHITECTURES "ppc;i386" )
316
    SET(CMAKE_TRY_COMPILE_OSX_ARCHITECTURES "ppc;i386" )
12559 cbradney 317
    SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.4u.sdk")
12556 cbradney 318
  ELSE(WANT_UNIVERSAL_BUNDLE)
319
    IF(ARCH_PPC OR ARCH_PPC_64)
320
      MESSAGE("Setting PPC Architecture for OSX Build/Bundle")
321
      SET(CMAKE_OSX_ARCHITECTURES "ppc" )
322
      SET(CMAKE_TRY_COMPILE_OSX_ARCHITECTURES "ppc" )
323
    ELSE(ARCH_PPC OR ARCH_PPC_64)
324
      MESSAGE("Setting i386 Architecture for OSX Build/Bundle")
325
      SET(CMAKE_OSX_ARCHITECTURES "i386" )
326
      SET(CMAKE_TRY_COMPILE_OSX_ARCHITECTURES "i386" )
327
    ENDIF(ARCH_PPC OR ARCH_PPC_64)
328
  ENDIF(WANT_UNIVERSAL_BUNDLE)
12528 cbradney 329
  MESSAGE(STATUS "${CMAKE_OSX_ARCHITECTURES} ${CMAKE_OSX_SYSROOT}")
330
  SET( ENV{MACOSX_DEPLOYMENT_TARGET} 10.4 )
5468 avox 331
  SET( ENV{LD_PREBIND} 1 )
332
  SET( ENV{LD_PREBIND_ALLOW_OVERLAP} 1 )
12528 cbradney 333
  SET(CMAKE_CXX_FLAGS_DEBUG "-O2 -g3 -fno-inline-functions -Wall -mmacosx-version-min=10.4")
334
  SET(CMAKE_C_FLAGS_DEBUG "-O2 -g3 -fno-inline-functions -Wall -mmacosx-version-min=10.4")
5468 avox 335
ELSE(APPLE)
10750 craig 336
  IF(${CMAKE_GENERATOR} MATCHES "^(Visual Studio|NMake).*")
337
    # Windows build with Visual Studio
338
    # Surely there's a better way to identify the compiler?
339
    SET(CMAKE_CXX_FLAGS_DEBUG)
340
    SET(CMAKE_C_FLAGS_DEBUG)
341
  ELSE(${CMAKE_GENERATOR} MATCHES "^(Visual Studio|NMake).*")
342
    # vanilla gcc
343
    SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3 -Wall -fstrict-aliasing")
344
    SET(CMAKE_C_FLAGS_DEBUG "-O0 -g3 -Wall -fstrict-aliasing")
12195 cbradney 345
 
346
    IF (_machine_x86 OR _machine_x86_64)
347
      SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fPIC")
348
      SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -fPIC")
349
    ENDIF (_machine_x86 OR _machine_x86_64)
350
 
10750 craig 351
  ENDIF(${CMAKE_GENERATOR} MATCHES "^(Visual Studio|NMake).*")
5468 avox 352
ENDIF(APPLE)
9680 cbradney 353
 
10750 craig 354
IF(${CMAKE_GENERATOR} MATCHES "^(Visual Studio|NMake).*")
355
  SET(CMAKE_CXX_FLAGS_RELEASE)
356
  SET(CMAKE_C_FLAGS_RELEASE)
357
ELSE(${CMAKE_GENERATOR} MATCHES "^(Visual Studio|NMake).*")
12233 cbradney 358
  SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -Wall -fPIC")
359
  SET(CMAKE_C_FLAGS_RELEASE "-O2 -Wall -fPIC")
10750 craig 360
ENDIF(${CMAKE_GENERATOR} MATCHES "^(Visual Studio|NMake).*")
5142 cbradney 361
 
10750 craig 362
IF(WIN32)
363
  ADD_DEFINITIONS(-DWIN32_LEAN_AND_MEAN
12167 cbradney 364
                  -DAVOID_WIN32_FILEIO
10750 craig 365
                  -D_CRT_SECURE_NO_DEPRECATE
12167 cbradney 366
                  -DCOMPILE_PLUGIN_AS_DLL
367
  )
10750 craig 368
  SET(BUILD_WINDOWS_VERSION 1)
369
  SET(SC_USE_GDI 1)
370
  IF(NOT SC_SHOULD_NOT_USE_GDIPLUS)
371
    SET(SC_USE_GDIPLUS 1)
372
  ENDIF(NOT SC_SHOULD_NOT_USE_GDIPLUS)
373
  SET(DLL_USE_NATIVE_API 1)
374
ENDIF(WIN32)
375
 
10215 cbradney 376
##############################################################################################################
377
########## Find Dependencies                                                                        ##########
5466 cbradney 378
 
9680 cbradney 379
#<< Qt
10719 cbradney 380
SET (QT_MT_REQUIRED TRUE)
12509 cbradney 381
SET (QT_MIN_VERSION "4.4.0")
10719 cbradney 382
IF (WANT_QT3SUPPORT)
10392 cbradney 383
  SET (QT_USE_QT3SUPPORT TRUE)
10719 cbradney 384
ELSE (WANT_QT3SUPPORT)
385
  SET (QT_USE_QT3SUPPORT FALSE)
386
ENDIF (WANT_QT3SUPPORT)
10392 cbradney 387
SET (QT_USE_QTXML TRUE )
9409 cbradney 388
IF (APPLE)
389
  SET( QT_USE_QTSQL TRUE )
390
ENDIF (APPLE)
391
SET( QT_USE_QTNETWORK TRUE )
8499 cbradney 392
FIND_PACKAGE(Qt4 REQUIRED)
393
INCLUDE( ${QT_USE_FILE} )
5142 cbradney 394
IF (QT_FOUND)
9680 cbradney 395
  MESSAGE("Qt4 Found OK")
12207 cbradney 396
  IF (QT_VERSION_MAJOR EQUAL 4 AND QT_VERSION_MINOR EQUAL 4 AND QT_VERSION_PATCH EQUAL 0)
12436 cbradney 397
  MESSAGE(STATUS "Warning: Qt 4.4.0 has some bugs relating to decimal notation and line drawing. Please refer to Scribus bug 6999 and 7187 for information and to check if this may affect your use. Please use 4.4.1+ on release for your platform/distribution.")
12207 cbradney 398
  ENDIF (QT_VERSION_MAJOR EQUAL 4 AND QT_VERSION_MINOR EQUAL 4 AND QT_VERSION_PATCH EQUAL 0)
12305 cbradney 399
  IF (QT_VERSION_MAJOR EQUAL 4 AND QT_VERSION_MINOR EQUAL 3)
400
    MESSAGE(STATUS "Warning: Some versions of Qt 4.3.x have a bug influencing layout in the Scribus Properties Palette (refer to Scribus bug 7107). Please upgrade to Qt 4.4.1+ on release (4.4.0 has a decimal notation bug)")
401
  ENDIF (QT_VERSION_MAJOR EQUAL 4 AND QT_VERSION_MINOR EQUAL 3)
10719 cbradney 402
  IF (WANT_QT3SUPPORT)
403
    MESSAGE(STATUS "Building with Qt3 Support")
404
  ELSE (WANT_QT3SUPPORT)
405
    MESSAGE(STATUS "Building without Qt3 Support (GOOD)")
406
  ENDIF (WANT_QT3SUPPORT)
9680 cbradney 407
  #Add our Qt definitions
408
  ADD_DEFINITIONS(
409
    ${QT_DEFINITIONS}
410
    -DQT_CORE_LIB
411
    -DQT_GUI_LIB
412
    -DQT_THREAD_LIB
413
    -DQT_XML_LIB
414
  )
5142 cbradney 415
ELSE(QT_FOUND)
9680 cbradney 416
  MESSAGE(FATAL_ERROR "No Qt4 found")
5142 cbradney 417
ENDIF(QT_FOUND)
9680 cbradney 418
#>> Qt
419
 
10818 craig 420
#<< ZLIB, PNG
421
IF (WIN32)
422
  # On win32 we can use Qt's zlib and libpng, so we use some
423
  # custom cmake includes. This permits us to honour the
424
  # USE_QT_ZLIB_PNGLIB flag if passed.
425
  SET(PNG_DIR ${CMAKE_MODULE_PATH})
426
  SET(ZLIB_DIR ${CMAKE_MODULE_PATH})
427
ENDIF (WIN32)
428
FIND_PACKAGE(ZLIB REQUIRED)
429
IF (ZLIB_FOUND)
430
  MESSAGE("ZLIB Library Found OK")
431
  SET(HAVE_LIBZ 1)
432
ENDIF(ZLIB_FOUND)
5142 cbradney 433
FIND_PACKAGE(PNG REQUIRED)
434
IF (PNG_FOUND)
435
  MESSAGE("PNG Library Found OK")
436
ENDIF(PNG_FOUND)
10818 craig 437
#>> ZLIB, PNG
438
 
439
#<< JPEG, TIFF, PYTHON
5142 cbradney 440
FIND_PACKAGE(JPEG REQUIRED)
441
IF (JPEG_FOUND)
442
  MESSAGE("JPEG Library Found OK")
443
ENDIF(JPEG_FOUND)
444
FIND_PACKAGE(TIFF REQUIRED)
445
IF (TIFF_FOUND)
446
  MESSAGE("TIFF Library Found OK")
447
  SET(HAVE_TIFF 1)
6211 cbradney 448
ELSE(TIFF_FOUND)
449
  MESSAGE(FATAL_ERROR "Could not find the TIFF Library")
5142 cbradney 450
ENDIF(TIFF_FOUND)
451
FIND_PACKAGE(PythonLibs REQUIRED)
452
IF (PYTHON_LIBRARY)
453
  MESSAGE("Python Library Found OK")
454
  SET(HAVE_PYTHON 1)
455
  SET(COMPILE_PYTHON 1)
456
ENDIF(PYTHON_LIBRARY)
10818 craig 457
#>> JPEG, TIFF, PYTHON
5142 cbradney 458
 
9680 cbradney 459
#<< FreeType2
12233 cbradney 460
IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 2.6)
461
  SET(FREETYPE_DIR ${CMAKE_MODULE_PATH})
462
  FIND_PACKAGE(FREETYPE REQUIRED)
463
  IF (FREETYPE_FOUND)
464
    MESSAGE("FreeType2 Library Found OK")
465
    INCLUDE(CheckLibraryExists)
466
    CHECK_LIBRARY_EXISTS(libfreetype.so FT_Get_First_Char "" HAVE_FREETYPE_FIRST)
467
    CHECK_LIBRARY_EXISTS(libfreetype.so FT_Get_Next_Char "" HAVE_FREETYPE_NEXT)
468
  ENDIF(FREETYPE_FOUND)
469
  SET(CFLAGS "${CFLAGS}"."${LIBFREETYPE_CFLAGS}")
470
ELSE(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 2.6)
471
  FIND_PACKAGE(Freetype REQUIRED)
472
  IF (FREETYPE_FOUND)
473
    MESSAGE(STATUS "FreeType2 Library Found OK")
474
    INCLUDE(CheckLibraryExists)
475
    CHECK_LIBRARY_EXISTS(libfreetype.so FT_Get_First_Char "" HAVE_FREETYPE_FIRST)
476
    CHECK_LIBRARY_EXISTS(libfreetype.so FT_Get_Next_Char "" HAVE_FREETYPE_NEXT)
477
    # here we have an alternative
478
    # a) Setup CFLAGS with the FREETYPE_INCLUDE_DIR_freetype2 provided by cmake
479
    # b) Insert ${FREETYPE_INCLUDE_DIRS} in include sections of CMakeLists that need it
480
    # I prefer (b) and at some point & from my opinion it should  be just needed in scribus/fonts/CmakeLists.txt - pm
481
  ELSE (FREETYPE_FOUND)
482
    MESSAGE(FATAL_ERROR "No Freetype Found")
483
  ENDIF(FREETYPE_FOUND)
484
ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 2.6)
9680 cbradney 485
#>> FreeType2
5142 cbradney 486
 
9680 cbradney 487
#<<Render Library
488
# Select our rendering library
489
# As of Scribus 1.3.5, we can use cairo or Qt4's Arthur
7013 cbradney 490
# If we have a RENDER_LIB selected from a previous cmake run, then use it
491
# otherwise, we should be defaulting to Libart_LGPL for 1.3.4.x
6686 cbradney 492
IF(RENDER_LIB)
493
  MESSAGE(STATUS "Previously selected rendering system: ${RENDER_LIB}")
7013 cbradney 494
ELSE(RENDER_LIB)
10972 cbradney 495
  IF (NOT WANT_QTARTHUR)
496
    SET(WANT_CAIRO 1)
497
  ENDIF (NOT WANT_QTARTHUR)
6686 cbradney 498
ENDIF(RENDER_LIB)
7013 cbradney 499
 
9680 cbradney 500
IF (WANT_CAIRO OR RENDER_LIB STREQUAL "CAIRO")
501
  SET(CAIRO_DIR ${CMAKE_MODULE_PATH})
502
  FIND_PACKAGE(CAIRO)
503
  IF(CAIRO_FOUND)
5142 cbradney 504
    MESSAGE("CAIRO Library Found OK")
6686 cbradney 505
    SET(RENDER_LIB "CAIRO" CACHE TYPE STRING)
9680 cbradney 506
  ELSE(CAIRO_FOUND)
507
    SET(OLDRENDERLIBLOST TRUE)
508
  ENDIF(CAIRO_FOUND)
509
ENDIF (WANT_CAIRO OR RENDER_LIB STREQUAL "CAIRO")
5142 cbradney 510
 
11945 jghali 511
#Cairo is required on Windows for printing system
512
IF (WIN32)
513
  IF (NOT CAIRO_FOUND)
514
    MESSAGE(FATAL_ERROR "Cairo >= 1.5.16 is required for Windows build")
515
  ENDIF (NOT CAIRO_FOUND)
516
ENDIF (WIN32)
517
 
9680 cbradney 518
IF (OLDRENDERLIBLOST OR WANT_QTARTHUR OR RENDER_LIB STREQUAL "QTARTHUR" OR NOT RENDER_LIB)
519
  SET(RENDER_LIB "QTARTHUR" CACHE TYPE STRING)
520
  MESSAGE("Qt4's Arthur selected for renderer")
521
  IF (OLDRENDERLIBLOST)
522
    MESSAGE("CAIRO could no longer be found, replaced by Qt4's Arthur")
523
  ENDIF (OLDRENDERLIBLOST)
524
ENDIF (OLDRENDERLIBLOST OR WANT_QTARTHUR OR RENDER_LIB STREQUAL "QTARTHUR" OR NOT RENDER_LIB)
525
#>>Render Library
526
 
527
#<<CUPS
10747 craig 528
IF(NOT WIN32)
529
  IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 2.5)
530
    SET(Cups_DIR ${CMAKE_MODULE_PATH})
531
  ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 2.5)
532
  FIND_PACKAGE(Cups REQUIRED)
533
  IF(CUPS_FOUND)
534
    SET(HAVE_CUPS 1)
535
    MESSAGE("CUPS Library Found OK")
536
  ENDIF(CUPS_FOUND)
537
ELSE(NOT WIN32)
538
  # Windows doesn't use CUPS
539
  SET(CUPS_INCLUDE_DIR)
540
ENDIF(NOT WIN32)
9680 cbradney 541
#>>CUPS
5142 cbradney 542
 
9680 cbradney 543
#<<LibXML2
7203 cbradney 544
IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 2.5)
545
  SET(LibXml2_DIR ${CMAKE_MODULE_PATH})
546
ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 2.5)
547
FIND_PACKAGE(LibXml2 REQUIRED)
5142 cbradney 548
IF(LIBXML2_FOUND)
549
  SET(HAVE_XML 1)
550
  MESSAGE("LIBXML2 Library Found OK")
551
ENDIF(LIBXML2_FOUND)
9680 cbradney 552
#>>LibXML2
5142 cbradney 553
 
9680 cbradney 554
#<<LittleCMS
5142 cbradney 555
SET(LCMS_DIR ${CMAKE_MODULE_PATH})
556
FIND_PACKAGE(LCMS REQUIRED)
557
IF(LCMS_FOUND)
558
  SET(HAVE_CMS 1)
559
  SET(CMS_INC "lcms.h")
6553 cbradney 560
  MESSAGE("LittleCMS Library Found OK")
561
ELSE(LCMS_FOUND)
562
  MESSAGE(FATAL_ERROR "Could not find the LittleCMS Library")
5142 cbradney 563
ENDIF(LCMS_FOUND)
9680 cbradney 564
#>>LittleCMS
5142 cbradney 565
 
9680 cbradney 566
#<<FontConfig
10747 craig 567
IF(NOT WIN32)
568
  SET(FONTCONFIG_DIR ${CMAKE_MODULE_PATH})
569
  FIND_PACKAGE(FONTCONFIG)
570
  IF(FONTCONFIG_FOUND)
5142 cbradney 571
	MESSAGE("FontConfig Found OK")
572
	SET(HAVE_FONTCONFIG 1)
10747 craig 573
  ENDIF(FONTCONFIG_FOUND)
574
ELSE(NOT WIN32)
575
  # Windows builds neither use nor require fontconfig
576
  SET(FONTCONFIG_INCLUDE_DIR)
577
ENDIF(NOT WIN32)
9680 cbradney 578
#>>FontConfig
5142 cbradney 579
 
11106 cbradney 580
#<<ASPELL for Speelling support
581
FIND_PACKAGE(ASPELL)
582
IF (ASPELL_FOUND)
583
  MESSAGE("ASpell Found OK")
584
  SET(HAVE_ASPELL 1)
585
ELSE(ASPELL_FOUND)
586
  MESSAGE("ASpell or its developer libraries NOT found - Disabling support for spell checking")
587
ENDIF(ASPELL_FOUND)
588
#>>ASPELL for Speelling support
589
 
590
 
10238 cbradney 591
#<<PoDoFo for AI PDF import
10234 fschmid 592
FIND_PACKAGE(LIBPODOFO)
593
IF(LIBPODOFO_FOUND)
10235 cbradney 594
  MESSAGE("PoDoFo found OK")
595
  SET(HAVE_PODOFO 1)
596
ELSE(LIBPODOFO_FOUND)
597
  MESSAGE("PoDoFo NOT found - Disabling support for PDF embedded in AI")
10234 fschmid 598
ENDIF(LIBPODOFO_FOUND)
10238 cbradney 599
#>>PoDoFo for AI PDF import
10234 fschmid 600
 
10215 cbradney 601
##############################################################################################################
602
########## Include Setup                                                                            ##########
8499 cbradney 603
 
10215 cbradney 604
TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
605
 
5142 cbradney 606
CHECK_INCLUDE_FILE("dlfcn.h" HAVE_DLFCN_H)
607
IF(HAVE_DLFCN_H)
608
  ADD_DEFINITIONS(-DHAVE_DLFCN_H)
609
ENDIF(HAVE_DLFCN_H)
610
 
611
CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTD_H)
612
IF(HAVE_UNISTD_H)
613
  ADD_DEFINITIONS(-DHAVE_UNISTD_H)
614
ENDIF(HAVE_UNISTD_H)
615
 
616
CHECK_INCLUDE_FILE("sys/types.h" HAVE_SYS_TYPES_H)
617
# IF(HAVE_SYS_TYPES_H)
618
#   ADD_DEFINITIONS(-DHAVE_SYS_TYPES_H)
619
# ENDIF(HAVE_SYS_TYPES_H)
620
 
621
CHECK_INCLUDE_FILE("sys/stat.h" HAVE_SYS_STAT_H)
622
# IF(HAVE_SYS_STAT_H)
623
#   ADD_DEFINITIONS(-DHAVE_SYS_STAT_H)
624
# ENDIF(HAVE_SYS_STAT_H)
9680 cbradney 625
#>>Test for existing include files
5142 cbradney 626
 
627
 
5150 cbradney 628
#Create configure files.. config.h and uninstall
629
#config.h
5142 cbradney 630
INCLUDE (ConfigureChecks.cmake)
10779 craig 631
  IF(WIN32)
632
    SET(CONFIG_NAME win-config.h)
633
  ELSE(WIN32)
634
    SET(CONFIG_NAME config.h)
635
  ENDIF(WIN32)
636
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME})
5142 cbradney 637
ADD_DEFINITIONS("-DHAVE_CONFIG_H")
9680 cbradney 638
 
5142 cbradney 639
 
5150 cbradney 640
 
5157 cbradney 641
#Set up include dirs with all found packages
5142 cbradney 642
INCLUDE_DIRECTORIES(
9680 cbradney 643
  ${CMAKE_BINARY_DIR}
644
  ${CMAKE_BINARY_DIR}/scribus
645
  ${QT_INCLUDES}
646
  ${CUPS_INCLUDE_DIR}
647
  ${FREETYPE_INCLUDE_DIR}
648
  ${FONTCONFIG_INCLUDE_DIR}
9712 avox 649
  ${JPEG_INCLUDE_DIR}
9680 cbradney 650
  ${LCMS_INCLUDE_DIR}
651
  ${LIBXML2_INCLUDE_DIR}
652
  ${PYTHON_INCLUDE_PATH}
653
  ${TIFF_INCLUDE_DIR}
654
  ${ZLIB_INCLUDE_DIR}
5142 cbradney 655
)
656
 
10215 cbradney 657
##############################################################################################################
658
########## Uninstall Setup                                                                          ##########
659
 
660
CONFIGURE_FILE(
661
  "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
662
  "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
663
  IMMEDIATE @ONLY
664
)
665
 
666
ADD_CUSTOM_TARGET(uninstall
667
  "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
668
 
669
 
670
##############################################################################################################
671
########## Add our subdirs                                                                          ##########
672
 
5157 cbradney 673
#Add our source subdirs
5142 cbradney 674
ADD_SUBDIRECTORY(scribus)
12077 malex 675
ADD_SUBDIRECTORY(translations/qm)
5142 cbradney 676
 
5157 cbradney 677
#Install our READMEs etc.
5142 cbradney 678
INSTALL(FILES
9386 cbradney 679
  AUTHORS
680
  BUILDING
681
  ChangeLog
10359 mrdocs 682
  ChangeLogSVN
9386 cbradney 683
  COPYING
12531 cbradney 684
  LINKS
9386 cbradney 685
  NEWS
686
  PACKAGING
687
  README
688
  README.MacOSX
689
  TODO
12531 cbradney 690
  TRANSLATION
5142 cbradney 691
  DESTINATION ${DOCDIR}
692
)
9386 cbradney 693
 
9680 cbradney 694
#Install our MIME data
6319 mrdocs 695
INSTALL(FILES
9386 cbradney 696
  scribus.xml
697
  DESTINATION ${MIMEDIR}
6319 mrdocs 698
)
11715 malex 699
#KDE workaround until it starts supporting freedesktop spec
700
INSTALL(FILES
701
  vnd.scribus.desktop
11717 cbradney 702
  DESTINATION ${MIMELNKDIR}
11715 malex 703
)
5396 cbradney 704
 
11761 mrdocs 705
## PL We may not need this anymore
9680 cbradney 706
#Install the desktop file
11761 mrdocs 707
## INSTALL(FILES
708
 # scribus.desktop
709
 # #DESTINATION ${DESKTOPDIR}
710
#)
9680 cbradney 711
 
712
#If building an Apple bundle, install these specific files
713
IF(APPLEBUNDLE)
9386 cbradney 714
  INSTALL(FILES
9680 cbradney 715
    Scribus.app/Contents/Info.plist
716
    DESTINATION ${CMAKE_INSTALL_PREFIX}
9386 cbradney 717
  )
718
  INSTALL(FILES
9680 cbradney 719
    Scribus.app/Contents/Resources/Scribus.icns
720
    Scribus.app/Contents/Resources/Scribus-doc.icns
721
    DESTINATION ${CMAKE_INSTALL_PREFIX}/Resources
9386 cbradney 722
  )
9680 cbradney 723
ENDIF(APPLEBUNDLE)
9386 cbradney 724
 
10215 cbradney 725
##############################################################################################################
726
########## Install/CPack Setup                                                                      ##########
727
 
9680 cbradney 728
# If the cmake version includes cpack, use it for tarball building
5396 cbradney 729
IF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
730
  SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Scribus is an open source publishing application for Linux, Mac OSX and Windows")
731
  SET(CPACK_PACKAGE_VENDOR "Scribus Team")
732
  SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
733
  SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/README")
734
  SET(CPACK_PACKAGE_VERSION_MAJOR "${VERSION_MAJOR}")
735
  SET(CPACK_PACKAGE_VERSION_MINOR "${VERSION_MINOR}")
736
  SET(CPACK_PACKAGE_VERSION_PATCH "${VERSION_PATCH}")
5407 cbradney 737
  SET(CPACK_PACKAGE_INSTALL_DIRECTORY "Scribus ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
5396 cbradney 738
  SET(CPACK_PACKAGE_EXECUTABLES "scribus${TAG_VERSION}")
11761 mrdocs 739
  SET(CPACK_SOURCE_PACKAGE_FILE_NAME "scribus-${VERSION}${VERSION_SUFFIX}")
5407 cbradney 740
  SET(CPACK_SOURCE_GENERATOR TBZ2)
11761 mrdocs 741
  SET(CPACK_SYSTEM_NAME "")
742
  SET(CPACK_TOPLEVEL_TAG "")
9680 cbradney 743
  SET(CPACK_SOURCE_IGNORE_FILES
744
    CMakeCache.txt
11761 mrdocs 745
    scribus-1.3.5svn.tar.bz2
746
    scribus-1.3.5svn.tar.Z
747
    scribus-1.3.5svn.tar.gz
9680 cbradney 748
    "~$"
749
    "\\\\.cvsignore$"
750
    "\\\\.o$"
11761 mrdocs 751
    "\\\\.svn-base$"
752
    "\\\\.svn$"
9680 cbradney 753
    "^${PROJECT_SOURCE_DIR}.*/CVS/"
754
    "^${PROJECT_SOURCE_DIR}/debian/"
755
    "^${PROJECT_SOURCE_DIR}/old/"
756
    "^${PROJECT_SOURCE_DIR}.*/CVSROOT/"
757
    "^${PROJECT_SOURCE_DIR}/admin/"
758
  )
5396 cbradney 759
  INCLUDE(CPack)
5463 avox 760
ENDIF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")