Subversion Repositories Scribus

Rev

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

Rev Author Line No. Line
5142 cbradney 1
#CMAKE SETUP
5758 cbradney 2
#Require 2.4.2 for Qt finding
3
#Require 2.4.3 for moc change detection
4
#Require 2.4.3 for rpath updates for custom cairo install
7202 cbradney 5
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.3 FATAL_ERROR)
5758 cbradney 6
 
5142 cbradney 7
SET(CMAKE_COLOR_MAKEFILE ON)
8
SET(CMAKE_VERBOSE_MAKEFILE ON)
9
SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
5758 cbradney 10
SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
5790 cbradney 11
#SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
5758 cbradney 12
#SET(CMAKE_SKIP_RPATH:BOOL NO)
5144 cbradney 13
SET(CMAKE_SKIP_RULE_DEPENDENCY TRUE)
14
 
5142 cbradney 15
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
16
# SET(CMAKE_SHARED_MODULE_LINK_FLAGS "${CMAKE_SHARED_MODULE_LINK_FLAGS} -export-dynamic")
17
# SET(CMAKE_SHARED_MODULE_LINK_CXX_FLAGS "${CMAKE_SHARED_MODULE_LINK_CXX_FLAGS} -export-dynamic")
18
# SET(CMAKE_SHARED_LIBRARY_C_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS} -export-dynamic")
19
# SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS} -export-dynamic")
20
# MESSAGE(STATUS ${CMAKE_SHARED_MODULE_LINK_FLAGS})
21
# MESSAGE(STATUS ${CMAKE_SHARED_MODULE_LINK_CXX_FLAGS})
22
# MESSAGE(STATUS ${CMAKE_SHARED_LIBRARY_C_FLAGS})
23
# MESSAGE(STATUS ${CMAKE_SHARED_LIBRARY_CXX_FLAGS})
24
# MESSAGE(STATUS ${CMAKE_CXX_CREATE_SHARED_MODULE})
25
# MESSAGE(STATUS ${CMAKE_CXX_CREATE_SHARED_LIBRARY})
26
 
27
#IMPORT FROM COMMANDLINE
28
# SET with cmake -DWANT_CAIRO=1, etc
29
# MESSAGE(STATUS ${WANT_CAIRO})
30
# MESSAGE(STATUS ${WANT_LIBART})
31
# MESSAGE(STATUS ${WANT_DEBUG})
5157 cbradney 32
 
33
# SET(WANT_CAIRO 0)
34
# SET(WANT_LIBART 1)
35
 
5142 cbradney 36
#PROJECT SETUP
37
PROJECT(scribus)
5396 cbradney 38
SET (VERSION_MAJOR "1")
39
SET (VERSION_MINOR "3")
40
SET (VERSION_PATCH "4")
41
SET (VERSION_SUFFIX "cvs")
5407 cbradney 42
SET (VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${VERSION_SUFFIX})
43
MESSAGE(STATUS "Scribus ${VERSION} will be built to install into ${CMAKE_INSTALL_PREFIX}")
5142 cbradney 44
 
45
SET(PLUGIN_PERMISSIONS WORLD_EXECUTE GROUP_EXECUTE OWNER_EXECUTE WORLD_READ GROUP_READ OWNER_READ OWNER_WRITE)
46
 
5379 cbradney 47
SET(MAIN_DIR_NAME "scribus")
6891 cbradney 48
IF(TAG_VERSION)
49
  MESSAGE(STATUS "Previously selected version tag: ${TAG_VERSION}")
50
  SET(WANT_VERSIONING 1)
51
  SET(CACHED_VERSIONING 1)
52
ENDIF(TAG_VERSION)
53
IF (WANT_VERSIONING AND NOT CACHED_VERSIONING)
5396 cbradney 54
  IF (NOT CUSTOM_VERSIONTAG)
6891 cbradney 55
    SET(TAG_VERSION "-${VERSION}" CACHE TYPE STRING)
5396 cbradney 56
  ELSE (NOT CUSTOM_VERSIONTAG)
6891 cbradney 57
    SET(TAG_VERSION ${CUSTOM_VERSIONTAG} CACHE TYPE STRING)
5396 cbradney 58
  ENDIF (NOT CUSTOM_VERSIONTAG)
6891 cbradney 59
ENDIF (WANT_VERSIONING AND NOT CACHED_VERSIONING)
5379 cbradney 60
 
5142 cbradney 61
SET(MANDIR "man/")
6893 cbradney 62
SET(SHAREDIR "share/${MAIN_DIR_NAME}${TAG_VERSION}/")
5142 cbradney 63
ADD_DEFINITIONS("-DSHAREDIR=\\\"${CMAKE_INSTALL_PREFIX}/${SHAREDIR}\\\"")
5379 cbradney 64
SET(DOCDIR "share/doc/${MAIN_DIR_NAME}${TAG_VERSION}/")
5142 cbradney 65
ADD_DEFINITIONS("-DDOCDIR=\\\"${CMAKE_INSTALL_PREFIX}/${DOCDIR}\\\"")
5379 cbradney 66
SET(ICONDIR "share/${MAIN_DIR_NAME}${TAG_VERSION}/icons/")
5142 cbradney 67
ADD_DEFINITIONS("-DICONDIR=\\\"${CMAKE_INSTALL_PREFIX}/${ICONDIR}\\\"")
5379 cbradney 68
SET(SAMPLESDIR "share/${MAIN_DIR_NAME}${TAG_VERSION}/samples/")
5142 cbradney 69
ADD_DEFINITIONS("-DSAMPLESDIR=\\\"${CMAKE_INSTALL_PREFIX}/${SAMPLESDIR}\\\"")
5379 cbradney 70
SET(SCRIPTSDIR "share/${MAIN_DIR_NAME}${TAG_VERSION}/scripts/")
5142 cbradney 71
ADD_DEFINITIONS("-DSCRIPTSDIR=\\\"${CMAKE_INSTALL_PREFIX}/${SCRIPTSDIR}\\\"")
5379 cbradney 72
SET(TEMPLATEDIR "share/${MAIN_DIR_NAME}${TAG_VERSION}/templates/")
5142 cbradney 73
ADD_DEFINITIONS("-DTEMPLATEDIR=\\\"${CMAKE_INSTALL_PREFIX}/${TEMPLATEDIR}\\\"")
5379 cbradney 74
SET(LIBDIR "lib/${MAIN_DIR_NAME}${TAG_VERSION}/")
5142 cbradney 75
ADD_DEFINITIONS("-DLIBDIR=\\\"${CMAKE_INSTALL_PREFIX}/${LIBDIR}\\\"")
5379 cbradney 76
SET(PLUGINDIR "lib/${MAIN_DIR_NAME}${TAG_VERSION}/plugins/")
5142 cbradney 77
ADD_DEFINITIONS("-DPLUGINDIR=\\\"${CMAKE_INSTALL_PREFIX}/${PLUGINDIR}\\\"")
78
set(CMAKE_INSTALL_RPATH ${PLUGINDIR})
79
 
6319 mrdocs 80
# Set the XDG mime stuff
6320 mrdocs 81
SET(MIMEDIR "share/mime/packages/")
6319 mrdocs 82
 
83
 
5142 cbradney 84
#BUILD SETUP
85
#None, Debug, Release, .. or custom ones
86
SET(WANT_DEBUG 1)
87
IF(WANT_DEBUG)
88
  SET(CMAKE_BUILD_TYPE Debug)
89
ELSE(WANT_DEBUG)
90
  SET(CMAKE_BUILD_TYPE RELEASE)
91
ENDIF(WANT_DEBUG)
92
 
5468 avox 93
IF(APPLE)
94
  SET( ENV{MACOSX_DEPLOYMENT_TARGET} 10.3 )
95
  SET( ENV{LD_PREBIND} 1 )
96
  SET( ENV{LD_PREBIND_ALLOW_OVERLAP} 1 )
97
  SET(CMAKE_CXX_FLAGS_DEBUG "-O2 -g3 -fno-inline-functions -Wall")
98
  SET(CMAKE_C_FLAGS_DEBUG "-O2 -g3 -fno-inline-functions -Wall")
5558 avox 99
  SET(BUILD_MAC_BUNDLE 1)
5468 avox 100
ELSE(APPLE)
101
  SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3 -Wall")
102
  SET(CMAKE_C_FLAGS_DEBUG "-O0 -g3 -Wall")
103
ENDIF(APPLE)
5271 mrdocs 104
SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -Wall")
105
SET(CMAKE_C_FLAGS_RELEASE "-O2 -Wall")
5142 cbradney 106
 
5466 cbradney 107
 
108
INCLUDE (${CMAKE_ROOT}/Modules/TestBigEndian.cmake)
5467 avox 109
TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
5466 cbradney 110
 
5142 cbradney 111
#FIND DEPENDENCIES
112
# START QT
113
SET (QT_MT_REQUIRED true)
5382 cbradney 114
SET (QT_MIN_VERSION "3.3.4")
5142 cbradney 115
FIND_PACKAGE(Qt3 REQUIRED)
116
IF (QT_FOUND)
5382 cbradney 117
  MESSAGE("Qt3 Found OK (${qt_version_str})")
5474 cbradney 118
#   MESSAGE("$ENV{QTDIR}")
119
#   MESSAGE("${QT_MOC_EXECUTABLE}")
120
#   MESSAGE("${QT_UIC_EXECUTABLE}")
121
#   MESSAGE("${QT_QT_LIBRARY}")
122
#   MESSAGE("${QT_INCLUDE_DIR}")
123
#   MESSAGE("${qt_version_str}")
5382 cbradney 124
#   MESSAGE(${qt_version_str_lib})
5142 cbradney 125
ELSE(QT_FOUND)
126
  MESSAGE(FATAL_ERROR "No Qt3")
127
ENDIF(QT_FOUND)
128
# END QT
129
# START PNG, JPEG, TIFF
130
FIND_PACKAGE(PNG REQUIRED)
131
IF (PNG_FOUND)
132
  MESSAGE("PNG Library Found OK")
133
ENDIF(PNG_FOUND)
134
FIND_PACKAGE(JPEG REQUIRED)
135
IF (JPEG_FOUND)
136
  MESSAGE("JPEG Library Found OK")
137
ENDIF(JPEG_FOUND)
138
FIND_PACKAGE(TIFF REQUIRED)
139
IF (TIFF_FOUND)
140
  MESSAGE("TIFF Library Found OK")
141
  SET(HAVE_TIFF 1)
6211 cbradney 142
ELSE(TIFF_FOUND)
143
  MESSAGE(FATAL_ERROR "Could not find the TIFF Library")
5142 cbradney 144
ENDIF(TIFF_FOUND)
145
FIND_PACKAGE(ZLIB REQUIRED)
146
IF (ZLIB_FOUND)
147
  MESSAGE("ZLIB Library Found OK")
148
  SET(HAVE_LIBZ 1)
149
ENDIF(ZLIB_FOUND)
150
FIND_PACKAGE(PythonLibs REQUIRED)
151
IF (PYTHON_LIBRARY)
152
  MESSAGE("Python Library Found OK")
153
  SET(HAVE_PYTHON 1)
154
  SET(COMPILE_PYTHON 1)
155
ENDIF(PYTHON_LIBRARY)
156
 
157
# START FREETYPE
158
SET(FREETYPE_DIR ${CMAKE_MODULE_PATH})
159
FIND_PACKAGE(FREETYPE REQUIRED)
160
IF (FREETYPE_FOUND)
161
  MESSAGE("FreeType2 Library Found OK")
5170 cbradney 162
  CHECK_LIBRARY_EXISTS(libfreetype.so FT_Get_First_Char "" HAVE_FREETYPE_FIRST)
163
  CHECK_LIBRARY_EXISTS(libfreetype.so FT_Get_Next_Char "" HAVE_FREETYPE_NEXT)
5142 cbradney 164
ENDIF(FREETYPE_FOUND)
165
#FIXME: if cflags empty add, otherwise replace as now
166
SET(CFLAGS "${LIBFREETYPE_CFLAGS}")
167
# END FREETYPE
168
 
7013 cbradney 169
# If we have a RENDER_LIB selected from a previous cmake run, then use it
170
# otherwise, we should be defaulting to Libart_LGPL for 1.3.4.x
6686 cbradney 171
IF(RENDER_LIB)
172
  MESSAGE(STATUS "Previously selected rendering system: ${RENDER_LIB}")
7013 cbradney 173
ELSE(RENDER_LIB)
174
  IF (NOT WANT_CAIRO)
175
    SET(WANT_LIBART 1)
176
  ENDIF (NOT WANT_CAIRO)
6686 cbradney 177
ENDIF(RENDER_LIB)
7013 cbradney 178
 
179
# START LIBART_LGPL
6686 cbradney 180
IF (WANT_LIBART OR RENDER_LIB STREQUAL "LIBART")
5142 cbradney 181
  SET(LIBART_LGPL_DIR ${CMAKE_MODULE_PATH})
182
  FIND_PACKAGE(LIBART_LGPL REQUIRED)
183
  IF(LIBART_LGPL_FOUND)
6686 cbradney 184
    SET(RENDER_LIB "LIBART" CACHE TYPE STRING)
5142 cbradney 185
    MESSAGE("Libart_LGPL Library Found OK")
6686 cbradney 186
  ELSE(LIBART_LGPL_FOUND)
187
    SET(OLDRENDERLIBLOST TRUE)
5142 cbradney 188
  ENDIF(LIBART_LGPL_FOUND)
6686 cbradney 189
ELSE (WANT_LIBART OR RENDER_LIB STREQUAL "LIBART")
5142 cbradney 190
  # START CAIRO
5157 cbradney 191
  SET(CAIRO_DIR ${CMAKE_MODULE_PATH})
192
  FIND_PACKAGE(CAIRO)
5142 cbradney 193
  IF(CAIRO_FOUND)
194
    MESSAGE("CAIRO Library Found OK")
6686 cbradney 195
    SET(RENDER_LIB "CAIRO" CACHE TYPE STRING)
196
  ELSE(CAIRO_FOUND)
197
    SET(OLDRENDERLIBLOST TRUE)
5142 cbradney 198
  ENDIF(CAIRO_FOUND)
199
  # END CAIRO
6686 cbradney 200
ENDIF (WANT_LIBART OR RENDER_LIB STREQUAL "LIBART")
5142 cbradney 201
# END LIBART_LGPL
202
 
6686 cbradney 203
IF(NOT RENDER_LIB OR OLDRENDERLIBLOST)
5170 cbradney 204
  MESSAGE(FATAL_ERROR "ERROR: Neither LibArt_LGPL nor cairo have been selected or found, please correct and restart cmake")
6686 cbradney 205
ENDIF(NOT RENDER_LIB OR OLDRENDERLIBLOST)
5159 cbradney 206
 
207
 
5142 cbradney 208
# START CUPS
7202 cbradney 209
IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 2.5)
210
  SET(Cups_DIR ${CMAKE_MODULE_PATH})
211
ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 2.5)
212
FIND_PACKAGE(Cups REQUIRED)
5142 cbradney 213
IF(CUPS_FOUND)
214
  SET(HAVE_CUPS 1)
215
  MESSAGE("CUPS Library Found OK")
216
ENDIF(CUPS_FOUND)
217
# END CUPS
218
 
219
# START LIBXML2
220
SET(LIBXML2_DIR ${CMAKE_MODULE_PATH})
221
FIND_PACKAGE(LIBXML2 REQUIRED)
222
IF(LIBXML2_FOUND)
223
  SET(HAVE_XML 1)
224
  MESSAGE("LIBXML2 Library Found OK")
225
ENDIF(LIBXML2_FOUND)
226
# END LIBXML2
227
 
228
# START LCMS
229
SET(LCMS_DIR ${CMAKE_MODULE_PATH})
230
FIND_PACKAGE(LCMS REQUIRED)
231
IF(LCMS_FOUND)
232
  SET(HAVE_CMS 1)
233
  SET(CMS_INC "lcms.h")
6553 cbradney 234
  MESSAGE("LittleCMS Library Found OK")
235
ELSE(LCMS_FOUND)
236
  MESSAGE(FATAL_ERROR "Could not find the LittleCMS Library")
5142 cbradney 237
ENDIF(LCMS_FOUND)
238
# END LCMS
239
 
240
# START FONTCONFIG
241
SET(FONTCONFIG_DIR ${CMAKE_MODULE_PATH})
242
FIND_PACKAGE(FONTCONFIG)
243
IF(FONTCONFIG_FOUND)
244
	MESSAGE("FontConfig Found OK")
245
	SET(HAVE_FONTCONFIG 1)
246
ENDIF(FONTCONFIG_FOUND)
247
# END FONTCONFIG
248
 
249
ADD_DEFINITIONS(${QT_DEFINITIONS})
250
 
251
CHECK_INCLUDE_FILE("dlfcn.h" HAVE_DLFCN_H)
252
IF(HAVE_DLFCN_H)
253
  ADD_DEFINITIONS(-DHAVE_DLFCN_H)
254
ENDIF(HAVE_DLFCN_H)
255
 
256
CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTD_H)
257
IF(HAVE_UNISTD_H)
258
  ADD_DEFINITIONS(-DHAVE_UNISTD_H)
259
ENDIF(HAVE_UNISTD_H)
260
 
261
CHECK_INCLUDE_FILE("sys/types.h" HAVE_SYS_TYPES_H)
262
# IF(HAVE_SYS_TYPES_H)
263
#   ADD_DEFINITIONS(-DHAVE_SYS_TYPES_H)
264
# ENDIF(HAVE_SYS_TYPES_H)
265
 
266
CHECK_INCLUDE_FILE("sys/stat.h" HAVE_SYS_STAT_H)
267
# IF(HAVE_SYS_STAT_H)
268
#   ADD_DEFINITIONS(-DHAVE_SYS_STAT_H)
269
# ENDIF(HAVE_SYS_STAT_H)
270
 
271
 
5150 cbradney 272
#Create configure files.. config.h and uninstall
273
#config.h
5142 cbradney 274
INCLUDE (ConfigureChecks.cmake)
275
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
276
ADD_DEFINITIONS("-DHAVE_CONFIG_H")
5150 cbradney 277
#uninstall
278
CONFIGURE_FILE(
279
  "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
280
  "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
281
  IMMEDIATE @ONLY)
5142 cbradney 282
 
5150 cbradney 283
ADD_CUSTOM_TARGET(uninstall
284
  "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
285
 
5157 cbradney 286
#Load our SCRIBUSQT package which gives us filename.moc instead of moc_filename.*
5142 cbradney 287
SET(SCRIBUSQT_DIR ${CMAKE_MODULE_PATH})
288
FIND_PACKAGE(SCRIBUSQT)
289
 
5157 cbradney 290
#Set up include dirs with all found packages
5142 cbradney 291
INCLUDE_DIRECTORIES(
5203 cbradney 292
${CMAKE_BINARY_DIR}
5205 cbradney 293
${CMAKE_BINARY_DIR}/scribus
5142 cbradney 294
${QT_INCLUDE_DIR}
295
${QT_INCLUDE_PATH}
296
${CUPS_INCLUDE_DIR}
297
${FREETYPE_INCLUDE_DIR}
298
${FONTCONFIG_INCLUDE_DIR}
299
${LCMS_INCLUDE_DIR}
300
${LIBXML2_INCLUDE_DIR}
301
${PYTHON_INCLUDE_PATH}
302
${TIFF_INCLUDE_DIR}
303
${ZLIB_INCLUDE_DIR}
304
)
305
 
5157 cbradney 306
#Set up libraries to link with all found packages
5758 cbradney 307
 
308
#Select Libart_LGPL or Cairo
309
IF(RENDER_LIB STREQUAL "LIBART")
310
  INCLUDE_DIRECTORIES(${LIBART_LGPL_INCLUDE_DIR})
311
  LINK_LIBRARIES(${LIBART_LGPL_LIBRARIES})
312
ENDIF(RENDER_LIB STREQUAL "LIBART")
313
IF(RENDER_LIB STREQUAL "CAIRO")
314
  INCLUDE_DIRECTORIES(${CAIRO_INCLUDE_DIR})
315
  LINK_LIBRARIES(${CAIRO_LIBRARIES})
316
  LINK_DIRECTORIES(${PREFIX_CAIRO_LIB})
317
  SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH};${PREFIX_CAIRO_LIB}")
318
ENDIF(RENDER_LIB STREQUAL "CAIRO")
319
 
320
MESSAGE("RPATH: ${CMAKE_INSTALL_RPATH}")
321
 
5142 cbradney 322
LINK_LIBRARIES (
323
${QT_QT_LIBRARY}
324
${CUPS_LIBRARIES}
325
${FREETYPE_LIBRARIES}
326
${FONTCONFIG_LIBRARIES}
327
${LCMS_LIBRARIES}
328
${LIBXML2_LIBRARIES}
329
${PYTHON_LIBRARIES}
330
${TIFF_LIBRARIES}
5463 avox 331
${JPEG_LIBRARIES}
5142 cbradney 332
${ZLIB_LIBRARIES}
333
)
334
 
335
IF(WIN32)
336
  LINK_LIBRARIES(
337
    ${QT_QTMAIN_LIBRARY}
338
  )
339
ENDIF(WIN32)
340
 
341
IF(WIN32)
342
  ADD_DEFINITIONS(-DQT_DLL)
343
ENDIF(WIN32)
344
 
5558 avox 345
IF(APPLE)
346
  LINK_LIBRARIES( "-undefined dynamic_lookup" )
5468 avox 347
  LINK_LIBRARIES( "-framework CoreFoundation" )
5558 avox 348
ENDIF(APPLE)
5468 avox 349
 
5157 cbradney 350
#Add our source subdirs
5142 cbradney 351
ADD_SUBDIRECTORY(scribus)
352
 
5157 cbradney 353
#Install our READMEs etc.
5142 cbradney 354
INSTALL(FILES
355
AUTHORS
356
BUILDING
357
ChangeLog
358
ChangeLogCVS
359
COPYING
360
INSTALL
361
NEWS
362
PACKAGING
363
README
364
README.MacOSX
365
TODO
6319 mrdocs 366
 
5142 cbradney 367
  DESTINATION ${DOCDIR}
368
)
6319 mrdocs 369
INSTALL(FILES
370
scribus.xml
371
DESTINATION ${MIMEDIR}
372
)
5396 cbradney 373
 
374
# If the cmake version includes cpack, use it
375
IF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
376
  SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Scribus is an open source publishing application for Linux, Mac OSX and Windows")
377
  SET(CPACK_PACKAGE_VENDOR "Scribus Team")
378
  SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
379
  SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/README")
380
  SET(CPACK_PACKAGE_VERSION_MAJOR "${VERSION_MAJOR}")
381
  SET(CPACK_PACKAGE_VERSION_MINOR "${VERSION_MINOR}")
382
  SET(CPACK_PACKAGE_VERSION_PATCH "${VERSION_PATCH}")
5407 cbradney 383
  SET(CPACK_PACKAGE_INSTALL_DIRECTORY "Scribus ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
5396 cbradney 384
  SET(CPACK_PACKAGE_EXECUTABLES "scribus${TAG_VERSION}")
385
  SET(CPACK_SOURCE_PACKAGE_FILE_NAME "scribus${TAG_VERSION}")
5407 cbradney 386
  SET(CPACK_SOURCE_GENERATOR TBZ2)
5396 cbradney 387
 
388
  INCLUDE(CPack)
5463 avox 389
ENDIF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")