2 # SuperTux - root build script
3 # Copyright (C) 2006 Christoph Sommer <christoph.sommer@2006.expires.deltadevelopment.de>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 # Create a directory build/ and change to it. Run
29 # This creates a set of Makefiles to build the project. Run
35 ## Project name to use as command prefix
40 ### CMake configuration
42 # allow building with old CMake. Use some bundled modules as a fallback
43 CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
44 SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${SUPERTUX_SOURCE_DIR}/mk/cmake)
46 # move some config clutter to the advanced section
48 CMAKE_BACKWARDS_COMPATIBILITY
51 EXECUTABLE_OUTPUT_PATH
53 CMAKE_OSX_ARCHITECTURES
62 OPTION(ENABLE_BINRELOC "Enable autopackage's BINRELOC features" OFF)
63 SET(APPDATADIR "${CMAKE_INSTALL_PREFIX}/share/games/supertux2")
67 INCLUDE(TestBigEndian)
68 TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
70 ## Add lots of dependencies to compiler switches
72 FIND_PACKAGE(SDL REQUIRED)
78 INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})
80 FIND_PACKAGE(SDL_image REQUIRED)
85 INCLUDE_DIRECTORIES(${SDLIMAGE_INCLUDE_DIR})
87 OPTION(ENABLE_OPENGL "Enable OpenGL support" ON)
90 IF(${OPENGL_FOUND} STREQUAL "YES")
91 INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})
93 ENDIF(${OPENGL_FOUND} STREQUAL "YES")
96 FIND_PACKAGE(OpenAL REQUIRED)
101 INCLUDE_DIRECTORIES(${OPENAL_INCLUDE_DIR})
103 FIND_PACKAGE(OggVorbis REQUIRED)
111 INCLUDE_DIRECTORIES(${OGGVORBIS_INCLUDE_DIR})
113 FIND_PACKAGE(PhysFS REQUIRED)
118 INCLUDE_DIRECTORIES(${PHYSFS_INCLUDE_DIR})
122 INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIR})
123 SET(HAVE_LIBCURL TRUE)
126 #FIND_PACKAGE(ICONV REQUIRED)
127 #INCLUDE_DIRECTORIES(${ICONV_INCLUDE_DIR})
128 #LINK_LIBRARIES(${ICONV_LIBRARY})
130 ## Find revision of WC
131 FIND_PACKAGE(Subversion)
133 Subversion_WC_INFO(${SUPERTUX_SOURCE_DIR} SUPERTUX)
134 SET(REVISION " r${SUPERTUX_WC_REVISION}")
135 ENDIF(Subversion_FOUND)
137 ## Check platform-dependent build options
139 INCLUDE(ConfigureChecks)
143 configure_file(config.h.cmake ${CMAKE_BINARY_DIR}/config.h )
144 include_directories (${CMAKE_BINARY_DIR}/)
146 ## Also execute instructions in src/squirrel/CMakeLists.txt
148 ADD_SUBDIRECTORY(src/squirrel)
150 ## Add squirrel lib dir to search path
152 LINK_DIRECTORIES(src/squirrel)
154 ## Some additional include paths
156 include_directories (${SUPERTUX_SOURCE_DIR}/src/)
157 include_directories (${SUPERTUX_SOURCE_DIR}/src/squirrel/include/)
159 ## Build list of sources for supertux binary
161 FILE(GLOB SUPERTUX_SOURCES RELATIVE ${SUPERTUX_SOURCE_DIR} src/*.cpp src/*/*.cpp src/obstack/*.c)
163 ## Precompile "a few" headers in GCC
164 OPTION(PRECOMPILE_HEADERS "Precompile headers (experimental)" OFF)
165 IF(PRECOMPILE_HEADERS)
166 FILE(GLOB PRECOMPILED_HEADERS RELATIVE ${SUPERTUX_SOURCE_DIR} src/badguy/badguy.hpp
167 src/scripting/wrapper.hpp src/video/*.hpp src/math/*.hpp)
168 FILE(WRITE ${SUPERTUX_BINARY_DIR}/precompile.hh "// Precompiled headers\n")
169 FILE(APPEND ${SUPERTUX_BINARY_DIR}/precompile.hh "#ifndef __SUPERTUX_PRECOMPILED_HEADER\n")
170 FILE(APPEND ${SUPERTUX_BINARY_DIR}/precompile.hh "#define __SUPERTUX_PRECOMPILED_HEADER\n")
171 FOREACH(PRECOMPILED_HEADER ${PRECOMPILED_HEADERS})
172 FILE(RELATIVE_PATH PRECOMPILED_HEADER ${SUPERTUX_SOURCE_DIR}/src "${SUPERTUX_SOURCE_DIR}/${PRECOMPILED_HEADER}")
173 FILE(APPEND ${SUPERTUX_BINARY_DIR}/precompile.hh "#include \"${PRECOMPILED_HEADER}\"\n")
174 ENDFOREACH(PRECOMPILED_HEADER)
175 FILE(APPEND ${SUPERTUX_BINARY_DIR}/precompile.hh "#endif /*__SUPERTUX_PRECOMPILED_HEADER*/\n")
177 OUTPUT ${SUPERTUX_BINARY_DIR}/precompile.hh.gch
178 COMMAND ${CMAKE_CXX_COMPILER} -x "c++-header" $(CXX_FLAGS) ${SUPERTUX_BINARY_DIR}/precompile.hh
179 DEPENDS ${PRECOMPILED_HEADERS}
180 COMMENT "Building precompiled header..."
182 ## Make certain it is built
183 SET(SUPERTUX_SOURCES ${SUPERTUX_BINARY_DIR}/precompile.hh.gch ${SUPERTUX_SOURCES})
184 SET(CMAKE_CXX_FLAGS "-include ${SUPERTUX_BINARY_DIR}/precompile.hh" ${CMAKE_CXX_FLAGS})
185 ELSE(PRECOMPILE_HEADERS)
186 IF(EXISTS ${SUPERTUX_BINARY_DIR}/precompile.hh)
187 FILE(REMOVE ${SUPERTUX_BINARY_DIR}/precompile.hh)
188 ENDIF(EXISTS ${SUPERTUX_BINARY_DIR}/precompile.hh)
189 IF(EXISTS ${SUPERTUX_BINARY_DIR}/precompile.hh.gch)
190 FILE(REMOVE ${SUPERTUX_BINARY_DIR}/precompile.hh.gch)
191 ENDIF(EXISTS ${SUPERTUX_BINARY_DIR}/precompile.hh.gch)
192 ENDIF(PRECOMPILE_HEADERS)
197 OPTION(DEBUG "Build with debugging options" OFF)
198 OPTION(PROFILE "Build with profiling information" OFF)
199 OPTION(WERROR "Stops on first compiler warning in debug mode" ON)
200 IF(CMAKE_COMPILER_IS_GNUCC)
201 ADD_DEFINITIONS(-Wall -W)
203 REMOVE_DEFINITIONS(-O2)
204 ADD_DEFINITIONS(-O0 -g)
206 ADD_DEFINITIONS(-Werror)
210 REMOVE_DEFINITIONS(-O0 -g)
215 REMOVE_DEFINITIONS(-pg)
217 ENDIF(CMAKE_COMPILER_IS_GNUCC)
219 ## Add in squirrel debug stuff
221 OPTION(ENABLE_SQDBG "Build squirrel script interpreter with debugging options" OFF)
223 include_directories (${SUPERTUX_SOURCE_DIR}/src/squirrel/)
224 FILE(GLOB SQDBG_SOURCES RELATIVE ${SUPERTUX_SOURCE_DIR} src/squirrel/sqdbg/*.cpp)
225 SET(SUPERTUX_SOURCES ${SQDBG_SOURCES} ${SUPERTUX_SOURCES})
228 ## Build miniswig and generate miniswig wrapper
230 OPTION(GENERATE_WRAPPER "Build miniswig and generate the wrapper" ${DEBUG})
232 ADD_SUBDIRECTORY(tools/miniswig)
233 FILE(GLOB GENERATE_WRAPPER_SOURCES RELATIVE ${SUPERTUX_SOURCE_DIR} src/scripting/*.?pp)
234 LIST(REMOVE_ITEM GENERATE_WRAPPER_SOURCES "src/scripting/wrapper.cpp" "src/scripting/wrapper.hpp")
236 OUTPUT ${SUPERTUX_SOURCE_DIR}/src/scripting/wrapper.cpp ${SUPERTUX_SOURCE_DIR}/src/scripting/wrapper.hpp
237 COMMAND cd ${SUPERTUX_SOURCE_DIR} && ${CMAKE_CXX_COMPILER}
238 ARGS -x "c++" -E -CC -DSCRIPTING_API src/scripting/wrapper.interface.hpp -o ${SUPERTUX_BINARY_DIR}/miniswig.tmp
239 COMMAND tools/miniswig/miniswig
240 ARGS --input miniswig.tmp --output-cpp ${SUPERTUX_SOURCE_DIR}/src/scripting/wrapper.cpp --output-hpp ${SUPERTUX_SOURCE_DIR}/src/scripting/wrapper.hpp --module supertux --select-namespace Scripting
241 DEPENDS ${GENERATE_WRAPPER_SOURCES} tools/miniswig/miniswig
243 ENDIF(GENERATE_WRAPPER)
245 IF(NOT EXISTS ${SUPERTUX_SOURCE_DIR}/src/scripting/wrapper.cpp)
246 SET(SUPERTUX_SOURCES ${SUPERTUX_SOURCES} ${SUPERTUX_SOURCE_DIR}/src/scripting/wrapper.cpp)
247 ENDIF(NOT EXISTS ${SUPERTUX_SOURCE_DIR}/src/scripting/wrapper.cpp)
249 ## If xgettext is available, generate messages.pot for sources
251 OPTION(GENERATE_MESSAGESPOT "Generate messages.pot files" ${DEBUG})
252 IF(GENERATE_MESSAGESPOT)
256 FIND_PROGRAM(XGETTEXT_EXECUTABLE xgettext)
257 IF(NOT XGETTEXT_EXECUTABLE)
258 MESSAGE(STATUS "Warning: xgettext not found - will not update messages.pot")
259 ELSE(NOT XGETTEXT_EXECUTABLE)
260 MESSAGE(STATUS "Found xgettext: ${XGETTEXT_EXECUTABLE}")
262 SET(MESSAGES_POT_FILE ${SUPERTUX_SOURCE_DIR}/data/locale/messages.pot)
264 OUTPUT ${MESSAGES_POT_FILE}
265 COMMAND ${XGETTEXT_EXECUTABLE}
266 ARGS --keyword=_ --language=C++ --output=${MESSAGES_POT_FILE} ${SUPERTUX_SOURCES}
267 DEPENDS ${SUPERTUX_SOURCES}
268 WORKING_DIRECTORY ${SUPERTUX_SOURCE_DIR}
269 COMMENT "Generating POT file ${MESSAGES_POT_FILE}"
271 LIST(APPEND MESSAGES_POT_FILES ${MESSAGES_POT_FILE})
273 FILE(GLOB SUPERTUX_LEVEL_DIRS RELATIVE ${SUPERTUX_SOURCE_DIR} data/levels/*)
274 LIST(REMOVE_ITEM SUPERTUX_LEVEL_DIRS "data/levels/.svn")
275 FOREACH(SUPERTUX_LEVEL_DIR ${SUPERTUX_LEVEL_DIRS})
276 FILE(GLOB SUPERTUX_LEVELS RELATIVE ${SUPERTUX_SOURCE_DIR} ${SUPERTUX_LEVEL_DIR}/*.stl ${SUPERTUX_LEVEL_DIR}/*.stwm ${SUPERTUX_LEVEL_DIR}/*.txt)
278 ## Do not add target if SUPERTUX_LEVELS is empty. This is needed for cmake <=2.4
280 SET(MESSAGES_POT_FILE ${SUPERTUX_SOURCE_DIR}/${SUPERTUX_LEVEL_DIR}/messages.pot)
282 OUTPUT ${MESSAGES_POT_FILE}
283 COMMAND ${XGETTEXT_EXECUTABLE}
284 ARGS --keyword="_:1" --language=Lisp --sort-by-file --output=${MESSAGES_POT_FILE} ${SUPERTUX_LEVELS}
285 DEPENDS ${SUPERTUX_LEVELS}
286 WORKING_DIRECTORY ${SUPERTUX_SOURCE_DIR}
287 COMMENT "Generating POT file ${MESSAGES_POT_FILE}"
289 LIST(APPEND MESSAGES_POT_FILES ${MESSAGES_POT_FILE})
290 ENDIF(SUPERTUX_LEVELS)
292 ENDFOREACH(SUPERTUX_LEVEL_DIR)
295 supertux2-messages ALL
296 DEPENDS ${MESSAGES_POT_FILES}
299 ENDIF(NOT XGETTEXT_EXECUTABLE)
300 ENDIF(GENERATE_MESSAGESPOT)
302 ## Some additional compiler switches
303 IF(CMAKE_COMPILER_IS_GNUCC)
304 ADD_DEFINITIONS(-fno-strict-aliasing)
305 ENDIF(CMAKE_COMPILER_IS_GNUCC)
307 IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
308 ADD_DEFINITIONS(-DMACOSX)
309 ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
312 ## On Windows, add an icon
315 SET(SUPERTUX_SOURCES ${SUPERTUX_SOURCES} ${SUPERTUX_SOURCE_DIR}/data/images/engine/icons/supertux.rc)
318 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/supertux_rc.o
319 COMMAND windres.exe -I${CMAKE_CURRENT_SOURCE_DIR}/data/images/engine/icons -i${CMAKE_CURRENT_SOURCE_DIR}/data/images/engine/icons/supertux.rc -o ${CMAKE_CURRENT_BINARY_DIR}/supertux_rc.o)
320 SET(SUPERTUX_SOURCES ${SUPERTUX_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/supertux_rc.o)
322 SET(SUPERTUX_EXE_SRCS ${SUPERTUX_EXE_SRCS} supertux.rc)
326 ## Add binreloc.c if enabled
328 SET(SUPERTUX_SOURCES ${SUPERTUX_SOURCES} ${SUPERTUX_SOURCE_DIR}/src/binreloc/binreloc.c)
329 ENDIF(ENABLE_BINRELOC)
332 ## Generate supertux executable in the right place
334 SET(EXECUTABLE_OUTPUT_PATH ${SUPERTUX_SOURCE_DIR})
336 ## Add target for supertux binary
338 ADD_EXECUTABLE(supertux2 ${SUPERTUX_SOURCES})
340 ## Link supertux binary with squirrel and other libraries
342 TARGET_LINK_LIBRARIES(supertux2 squirrel)
343 TARGET_LINK_LIBRARIES(supertux2 ${SDL_LIBRARY})
344 TARGET_LINK_LIBRARIES(supertux2 ${SDLIMAGE_LIBRARY})
345 TARGET_LINK_LIBRARIES(supertux2 ${OPENAL_LIBRARY})
346 TARGET_LINK_LIBRARIES(supertux2 ${OGGVORBIS_LIBRARIES})
347 TARGET_LINK_LIBRARIES(supertux2 ${PHYSFS_LIBRARY})
349 TARGET_LINK_LIBRARIES(supertux2 ${OPENGL_LIBRARY})
352 TARGET_LINK_LIBRARIES(supertux2 ${CURL_LIBRARY})
357 IF(WIN32 AND NOT UNIX)
359 SET(INSTALL_SUBDIR_BIN ".")
360 SET(INSTALL_SUBDIR_SHARE "data/")
361 SET(INSTALL_SUBDIR_DOC ".")
363 INSTALL(FILES ${SUPERTUX_SOURCE_DIR}/SDL.dll DESTINATION ${INSTALL_SUBDIR_BIN})
364 INSTALL(FILES ${SUPERTUX_SOURCE_DIR}/SDL_image.dll DESTINATION ${INSTALL_SUBDIR_BIN})
365 INSTALL(FILES ${SUPERTUX_SOURCE_DIR}/iconv.dll DESTINATION ${INSTALL_SUBDIR_BIN})
366 INSTALL(FILES ${SUPERTUX_SOURCE_DIR}/libogg-0.dll DESTINATION ${INSTALL_SUBDIR_BIN})
367 INSTALL(FILES ${SUPERTUX_SOURCE_DIR}/libphysfs-1-0-0.dll DESTINATION ${INSTALL_SUBDIR_BIN})
368 INSTALL(FILES ${SUPERTUX_SOURCE_DIR}/OpenAl32.dll DESTINATION ${INSTALL_SUBDIR_BIN})
369 INSTALL(FILES ${SUPERTUX_SOURCE_DIR}/wrap_oal.dll DESTINATION ${INSTALL_SUBDIR_BIN})
370 INSTALL(FILES ${SUPERTUX_SOURCE_DIR}/libcurl-4.dll DESTINATION ${INSTALL_SUBDIR_BIN})
372 INSTALL(FILES ${SUPERTUX_SOURCE_DIR}/data/images/engine/icons/supertux.png ${SUPERTUX_SOURCE_DIR}/data/images/engine/icons/supertux.ico DESTINATION ".")
374 ELSE(WIN32 AND NOT UNIX)
375 IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
377 SET(INSTALL_SUBDIR_BIN "SuperTux.app/Contents/MacOS/")
378 SET(INSTALL_SUBDIR_SHARE "SuperTux.app/Contents/Resources/data/")
379 SET(INSTALL_SUBDIR_DOC "SuperTux.app/Contents/Resources/")
381 INSTALL(FILES ${SUPERTUX_SOURCE_DIR}/tools/darwin/info.plist DESTINATION "SuperTux.app/Contents/")
383 INSTALL(FILES ${SUPERTUX_SOURCE_DIR}/data/images/engine/icons/supertux.png ${SUPERTUX_SOURCE_DIR}/data/images/engine/icons/supertux.icns DESTINATION "SuperTux.app/Contents/Resources/")
385 ELSE(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
387 SET(INSTALL_SUBDIR_BIN "games/")
388 SET(INSTALL_SUBDIR_SHARE "share/games/supertux2/")
389 SET(INSTALL_SUBDIR_DOC "share/doc/supertux2/")
391 INSTALL(FILES ${SUPERTUX_SOURCE_DIR}/supertux2.desktop DESTINATION "share/applications")
393 INSTALL(FILES ${SUPERTUX_SOURCE_DIR}/data/images/engine/icons/supertux.png ${SUPERTUX_SOURCE_DIR}/data/images/engine/icons/supertux.xpm DESTINATION "share/pixmaps/")
395 ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
396 ENDIF(WIN32 AND NOT UNIX)
398 INSTALL(TARGETS supertux2 DESTINATION ${INSTALL_SUBDIR_BIN})
400 INSTALL(FILES ${SUPERTUX_SOURCE_DIR}/INSTALL ${SUPERTUX_SOURCE_DIR}/README ${SUPERTUX_SOURCE_DIR}/COPYING ${SUPERTUX_SOURCE_DIR}/WHATSNEW.txt DESTINATION ${INSTALL_SUBDIR_DOC})
402 INSTALL(FILES ${SUPERTUX_SOURCE_DIR}/data/credits.txt DESTINATION ${INSTALL_SUBDIR_SHARE})
403 INSTALL(DIRECTORY data/images DESTINATION ${INSTALL_SUBDIR_SHARE} PATTERN ".svn" EXCLUDE)
404 INSTALL(DIRECTORY data/levels DESTINATION ${INSTALL_SUBDIR_SHARE} PATTERN ".svn" EXCLUDE)
405 INSTALL(DIRECTORY data/music DESTINATION ${INSTALL_SUBDIR_SHARE} PATTERN ".svn" EXCLUDE)
406 INSTALL(DIRECTORY data/scripts DESTINATION ${INSTALL_SUBDIR_SHARE} PATTERN ".svn" EXCLUDE)
407 INSTALL(DIRECTORY data/speech DESTINATION ${INSTALL_SUBDIR_SHARE} PATTERN ".svn" EXCLUDE)
408 INSTALL(DIRECTORY data/sounds DESTINATION ${INSTALL_SUBDIR_SHARE} PATTERN ".svn" EXCLUDE)
409 INSTALL(DIRECTORY data/locale DESTINATION ${INSTALL_SUBDIR_SHARE} PATTERN ".svn" EXCLUDE)
412 ## CPack/Installation-specific stuff
414 INCLUDE(InstallRequiredSystemLibraries)
415 SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Jump'n'Run Game featuring Tux")
416 SET(CPACK_PACKAGE_VENDOR "SuperTux Devel Team")
417 SET(CPACK_PACKAGE_CONTACT "SuperTux Devel Team <supertux-devel@lists.lethargik.org>")
418 SET(CPACK_DEBIAN_PACKAGE_NAME "supertux2")
419 SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.5), libgcc1 (>= 1:4.1), libgl1-mesa-glx | libgl1, libogg0 (>= 1.1.3), libopenal0a, libphysfs-1.0-0, libsdl-image1.2 (>= 1.2.5), libsdl1.2debian (>= 1.2.10-1), libstdc++6 (>= 4.1.2), libvorbis0a (>= 1.1.2), libvorbisfile3 (>= 1.1.2), libcurl3 (>= 7.16)")
420 SET(CPACK_DEBIAN_PACKAGE_DESCRIPTION "Classic 2D jump 'n run sidescroller with Tux\n SuperTux is a classic 2D jump 'n run sidescroller game in a similar\n style like the original SuperMario games. This release of SuperTux\n features 9 enemies, 26 playable levels, software and OpenGL rendering\n modes, configurable joystick and keyboard input, new music and\n completely redone graphics.\n .\n This is a development snapshot of SuperTux. It may suffer from\n critical bugs and has not been fully tested. \n .\n Homepage: http://supertux.lethargik.org/")
421 SET(CPACK_DEBIAN_PACKAGE_SECTION "games")
422 SET(CPACK_RPM_PACKAGE_NAME "supertux2")
423 SET(CPACK_RPM_PACKAGE_DESCRIPTION "Classic 2D jump 'n run sidescroller with Tux\n SuperTux is a classic 2D jump 'n run sidescroller game in a similar\n style like the original SuperMario games. This release of SuperTux\n features 9 enemies, 26 playable levels, software and OpenGL rendering\n modes, configurable joystick and keyboard input, new music and\n completely redone graphics.\n .\n This is a development snapshot of SuperTux. It may suffer from\n critical bugs and has not been fully tested. \n .\n Homepage: http://supertux.lethargik.org/")
424 SET(CPACK_RPM_PACKAGE_LICENSE "GNU General Public License (GPL)")
425 SET(CPACK_RPM_PACKAGE_GROUP "Amusements/Games/Action/Arcade")
426 IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
427 # The OS X PackageMaker doesn't seem to like files with no extension
428 ELSE(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
429 SET(CPACK_PACKAGE_DESCRIPTION_FILE "${SUPERTUX_SOURCE_DIR}/README")
430 SET(CPACK_RESOURCE_FILE_LICENSE "${SUPERTUX_SOURCE_DIR}/COPYING")
431 ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
432 SET(CPACK_PACKAGE_VERSION_MAJOR "0")
433 SET(CPACK_PACKAGE_VERSION_MINOR "3")
434 SET(CPACK_PACKAGE_VERSION_PATCH "2-SVN")
435 SET(CPACK_PACKAGE_INSTALL_DIRECTORY "SuperTux ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
436 SET(CPACK_PACKAGE_EXECUTABLES "..\\\\supertux2" "SuperTux ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
437 IF(WIN32 AND NOT UNIX)
438 SET(CPACK_NSIS_INSTALLED_ICON_NAME "..\\\\supertux2")
439 SET(CPACK_NSIS_DISPLAY_NAME "SuperTux ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
440 ELSE(WIN32 AND NOT UNIX)
441 ENDIF(WIN32 AND NOT UNIX)