CMakeLists.txt   CMakeLists.txt 
skipping to change at line 15 skipping to change at line 15
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
IF(COMMAND cmake_policy) IF(COMMAND cmake_policy)
CMAKE_POLICY(SET CMP0003 NEW) CMAKE_POLICY(SET CMP0003 NEW)
ENDIF() ENDIF()
########### Project name ########### ########### Project name ###########
PROJECT(Stellarium) PROJECT(Stellarium)
SET(STELLARIUM_MAJOR "0") SET(STELLARIUM_MAJOR "0")
SET(STELLARIUM_MINOR "10") SET(STELLARIUM_MINOR "10")
SET(STELLARIUM_PATCH "4") SET(STELLARIUM_PATCH "5")
SET(VERSION "${STELLARIUM_MAJOR}.${STELLARIUM_MINOR}.${STELLARIUM_PATCH}") SET(VERSION "${STELLARIUM_MAJOR}.${STELLARIUM_MINOR}.${STELLARIUM_PATCH}")
SET(PACKAGE stellarium) SET(PACKAGE stellarium)
ADD_DEFINITIONS(-DPACKAGE_VERSION="${VERSION}")
# Use customized cmake macros # Use customized cmake macros
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
########### Main global variables ########### ########### Main global variables ###########
IF(NOT CMAKE_BUILD_TYPE) IF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, opti ons are: None Debug Release RelWithDebInfo MinSizeRel." FORCE) SET(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, opti ons are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
ENDIF() ENDIF()
IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
SET(APPLE 1) SET(APPLE 1)
ENDIF() ENDIF()
IF(UNIX AND NOT WIN32) IF(UNIX AND NOT WIN32)
SET(CMAKE_C_FLAGS "-Wall -Wextra -Wno-unused-parameter") # additiona l C compile flags SET(CMAKE_C_FLAGS "-Wall -Wextra -Wno-unused-parameter") # additiona l C compile flags
SET(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-parameter") # additiona l CPP compile flags SET(CMAKE_CXX_FLAGS "-Wall -Wextra") # additional CPP compile flags
ELSE() ELSE()
SET(CMAKE_C_FLAGS "-Wall -fexceptions -fident -mthreads") SET(CMAKE_C_FLAGS "-Wall -fexceptions -fident -mthreads")
SET(CMAKE_CXX_FLAGS "-Wall -Wsign-promo -fexceptions -fident -mthreads") SET(CMAKE_CXX_FLAGS "-Wall -Wsign-promo -fexceptions -fident -mthreads")
SET(CMAKE_EXE_LINKER_FLAGS "-Wsign-promo -fexceptions -fident -mthreads -m windows --large-address-aware") # --enable-runtime-pseudo-reloc --verbose SET(CMAKE_EXE_LINKER_FLAGS "-Wsign-promo -fexceptions -fident -mthreads -m windows --large-address-aware") # --enable-runtime-pseudo-reloc --verbose
ENDIF() ENDIF()
SET(OPTIMIZE_INTEL_ATOM 0 CACHE BOOL "Activate optimizations for atom proce ssor.") SET(OPTIMIZE_INTEL_ATOM 0 CACHE BOOL "Activate optimizations for atom proce ssor.")
IF(OPTIMIZE_INTEL_ATOM) IF(OPTIMIZE_INTEL_ATOM)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mtune=generic -msse -msse2 -msse3 -mf pmath=sse") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mtune=generic -msse -msse2 -msse3 -mf pmath=sse")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mtune=generic -msse -msse2 -msse3 -mfpmath=sse") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mtune=generic -msse -msse2 -msse3 -mfpmath=sse")
ENDIF() ENDIF()
SET(OPTIMIZE_N900 0 CACHE BOOL "Activate optimizations for ARM Cortex-A8 wi SET(BUILD_FOR_MAEMO 0 CACHE BOOL "Set to 1 or true if you want to build for
th NEON SIMD Compiler Options.") maemo target")
IF(OPTIMIZE_N900) IF(BUILD_FOR_MAEMO)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mtune=cortex-a8 -march=armv7-a -ftree # Optimize for N900 ARM processor
-vectorize -mfpu=neon -mfloat-abi=softfp -ffast-math -fomit-frame-pointer - SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-omit-frame-pointer -fno-optimize
funroll-loops") -sibling-calls -D_REENTRANT -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GL
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mtune=cortex-a8 -march=armv7-a -f YPH_CACHE_WIDTH=1024 -mtune=cortex-a8 -march=armv7-a -ftree-vectorize -mfpu
tree-vectorize -mfpu=neon -mfloat-abi=softfp -ffast-math -fomit-frame-point =neon -mfloat-abi=softfp -ffast-math -funroll-loops -DBUILD_FOR_MAEMO")
er -funroll-loops") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer -fno-opti
mize-sibling-calls -D_REENTRANT -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTUR
E_GLYPH_CACHE_WIDTH=1024 -mtune=cortex-a8 -march=armv7-a -ftree-vectorize -
mfpu=neon -mfloat-abi=softfp -ffast-math -funroll-loops -DBUILD_FOR_MAEMO")
ENDIF() ENDIF()
# best way to get to APPLE? # best way to get to APPLE?
IF(APPLE) IF(APPLE)
SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -fno-common -Wall -Wextra -mmacosx-v ersion-min=10.4")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-common -Wall -Wextra -Wno-unused- parameter") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-common -Wall -Wextra -Wno-unused- parameter")
SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.4")
SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.4") SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.4")
SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.4u.sdk/") SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.4u.sdk/")
# Universal binary # Universal binary
#SET(CMAKE_OSX_ARCHITECTURES "i386;ppc") SET(CMAKE_OSX_ARCHITECTURES "i386;ppc")
SET(CMAKE_OSX_ARCHITECTURES "i386")
ENDIF() ENDIF()
########### Check headers ###########
INCLUDE(CheckIncludeFiles)
CHECK_INCLUDE_FILES(byteswap.h HAVE_BYTESWAP_H)
########### Check functions ########### ########### Check functions ###########
INCLUDE(CheckFunctionExists) INCLUDE(CheckFunctionExists)
CHECK_FUNCTION_EXISTS(tzset HAVE_TZSET) SET(CMAKE_REQUIRED_LIBRARIES "-lm")
CHECK_FUNCTION_EXISTS(pow10 HAVE_POW10) CHECK_FUNCTION_EXISTS(pow10 HAVE_POW10)
CHECK_FUNCTION_EXISTS(setlocale HAVE_SETLOCALE) SET(CMAKE_REQUIRED_LIBRARIES)
CHECK_FUNCTION_EXISTS(snprintf HAVE_SNPRINTF) IF(HAVE_POW10)
ADD_DEFINITIONS(-DHAVE_POW10)
ENDIF()
########### Others ########### ########### Others ###########
# Activate translation with gettext # Activate translation with gettext
SET(RELEASE_BUILD 1 CACHE BOOL "Flag this build as an official release.")
SET(ENABLE_NLS 1 CACHE BOOL "Define whether program translation should be s upported.") SET(ENABLE_NLS 1 CACHE BOOL "Define whether program translation should be s upported.")
IF(ENABLE_NLS)
ADD_DEFINITIONS(-DENABLE_NLS)
ENDIF()
SET(RELEASE_BUILD 1 CACHE BOOL "Flag this build as an official release.")
# Activate sound support # Activate sound support
SET(ENABLE_SOUND 0 CACHE BOOL "Define whether sound support should be activ ated, options are.") SET(ENABLE_SOUND 0 CACHE BOOL "Define whether sound support should be activ ated.")
# (De-)Activate the script edit console SET(ENABLE_SCRIPTING 1 CACHE BOOL "Define whether scripting features should
SET(ENABLE_SCRIPT_CONSOLE 1 CACHE BOOL "Define whether to build the script be activated.")
console feature, options are.") IF(ENABLE_SCRIPTING)
IF(ENABLE_SCRIPT_CONSOLE) # (De-)Activate the script edit console
ADD_DEFINITIONS(-DENABLE_SCRIPT_CONSOLE) SET(ENABLE_SCRIPT_CONSOLE 1 CACHE BOOL "Define whether to build the scrip
t console feature.")
IF(ENABLE_SCRIPT_CONSOLE)
ADD_DEFINITIONS(-DENABLE_SCRIPT_CONSOLE)
ENDIF()
SET(ENABLE_STRATOSCRIPT_COMPAT 0 CACHE BOOL "Set to 1 or true if you want
to build the Stratoscript compatibility mode")
ELSE()
ADD_DEFINITIONS(-DDISABLE_SCRIPTING)
ENDIF() ENDIF()
SET(ENABLE_STRATOSCRIPT_COMPAT 0 CACHE BOOL "Set to 1 or true if you want t o build the Stratoscript compatibility mode")
SET(GUI_MODE Standard CACHE STRING "Choose the type of GUI to build, option s are: Standard, None, External") SET(GUI_MODE Standard CACHE STRING "Choose the type of GUI to build, option s are: Standard, None, External")
SET(OPENGL_MODE Desktop CACHE STRING "Choose the type of openGL to use, opt ions are: Desktop, ES2") SET(OPENGL_MODE Desktop CACHE STRING "Choose the type of openGL to use, opt ions are: Desktop, ES2")
SET(GENERATE_PACKAGE_TARGET 1 CACHE BOOL "Set to 1 or true if you want to h
ave make package target")
# On WIN32 we need to split the main binary into a small binary and a dll # On WIN32 we need to split the main binary into a small binary and a dll
# This is for allowing to link dynamic plug-ins afterward # This is for allowing to link dynamic plug-ins afterward
IF(WIN32) IF(WIN32)
SET(GENERATE_STELMAINLIB 1) SET(GENERATE_STELMAINLIB 1)
ELSE() ELSE()
SET(GENERATE_STELMAINLIB 0) SET(GENERATE_STELMAINLIB 0)
ENDIF() ENDIF()
# For Windows, the default back end for the graphics system should be "nati ve", as "raster" # For Windows, the default back end for the graphics system should be "nati ve", as "raster"
# causes problems for many ATI users. However, for other platforms we shou ld use raster # causes problems for many ATI users. However, for other platforms we shou ld use raster
skipping to change at line 133 skipping to change at line 144
SET(USE_PLUGIN_VIRGO 0 CACHE BOOL "Define whether the VirGO plugin should b e created.") SET(USE_PLUGIN_VIRGO 0 CACHE BOOL "Define whether the VirGO plugin should b e created.")
########## Static plugins need to define includes and libraries ########## Static plugins need to define includes and libraries
########## for the compilation of Stellarium itself ########## for the compilation of Stellarium itself
IF (BUILD_STATIC_PLUGINS) IF (BUILD_STATIC_PLUGINS)
IF (USE_PLUGIN_OCULARS) IF (USE_PLUGIN_OCULARS)
SET(QT_USE_QTSQL TRUE) SET(QT_USE_QTSQL TRUE)
ENDIF() ENDIF()
IF (USE_PLUGIN_SVMT) IF (USE_PLUGIN_SVMT)
## Tokyo Cabinet
FIND_PATH(TOKYOC_INCLUDE_DIR tcadb.h
/usr/include
/usr/local/include
DOC "Should point to the directory where the include files for tok
yo cabinet are installed")
FIND_LIBRARY(TOKYOC_LIBRARIES tokyocabinet
PATHS
/usr/lib/
/usr/local/lib
DOC "tokyo cabinet link options")
SET(QT_USE_QTXML TRUE) # For SVMT we also need QtXml module SET(QT_USE_QTXML TRUE) # For SVMT we also need QtXml module
SET(QT_USE_QTDECLARATIVE TRUE) # For SVMT we also need QML module, t his line doesn't seem to work right now SET(QT_USE_QTDECLARATIVE TRUE) # For SVMT we also need QML module, t his line doesn't seem to work right now
ENDIF() ENDIF()
IF (USE_PLUGIN_VIRGO) IF (USE_PLUGIN_VIRGO)
## Library for loading FITS image files ## Library for loading FITS image files
FIND_PATH(CFITSIO_INCLUDE_DIR fitsio.h FIND_PATH(CFITSIO_INCLUDE_DIR fitsio.h
/usr/include /usr/include
/usr/local/include /usr/local/include
DOC "Should point to the directory where the include files for lib cfitsio are installed") DOC "Should point to the directory where the include files for lib cfitsio are installed")
skipping to change at line 171 skipping to change at line 172
ENDIF() ENDIF()
# Custom target used to manage dependencies of stellarium -> Static plugins # Custom target used to manage dependencies of stellarium -> Static plugins
# It is important that static plugins are compiled before stellarium main e xecutable is linked # It is important that static plugins are compiled before stellarium main e xecutable is linked
ADD_CUSTOM_TARGET(AllStaticPlugins ALL) ADD_CUSTOM_TARGET(AllStaticPlugins ALL)
########### Find packages ########### ########### Find packages ###########
SET(QT_MIN_VERSION "4.6.0") SET(QT_MIN_VERSION "4.6.0")
FIND_PACKAGE(Qt4 REQUIRED) FIND_PACKAGE(Qt4 REQUIRED)
SET(QT_USE_QTOPENGL TRUE) SET(QT_USE_QTOPENGL TRUE)
SET(QT_USE_QTSCRIPT TRUE) IF(ENABLE_SCRIPTING)
SET(QT_USE_QTSCRIPT TRUE)
ENDIF()
SET(QT_USE_QTNETWORK TRUE) SET(QT_USE_QTNETWORK TRUE)
SET(QT_USE_QTSVG TRUE)
SET(QT_USE_QTTEST TRUE) SET(QT_USE_QTTEST TRUE)
IF(ENABLE_SOUND) IF(ENABLE_SOUND)
ADD_DEFINITIONS(-DHAVE_QT_PHONON) ADD_DEFINITIONS(-DHAVE_QT_PHONON)
SET(QT_USE_PHONON TRUE) SET(QT_USE_PHONON TRUE)
ENDIF() ENDIF()
INCLUDE(${QT_USE_FILE}) INCLUDE(${QT_USE_FILE})
# Get rid of the QtTest dependency for the main binary. It is re-added manu ally when compiling tests. # Get rid of the QtTest dependency for the main binary. It is re-added manu ally when compiling tests.
STRING(REPLACE "${QT_QTTEST_LIBRARY}" "" QT_LIBRARIES "${QT_LIBRARIES}") STRING(REPLACE "${QT_QTTEST_LIBRARY}" "" QT_LIBRARIES "${QT_LIBRARIES}")
# Get rid of the GLU dependency, it's not needed in stellarium. # Get rid of the GLU dependency, it's not needed in stellarium.
skipping to change at line 201 skipping to change at line 203
PATHS PATHS
/usr/include /usr/include
/sw/include /sw/include
/usr/local/include) /usr/local/include)
FIND_LIBRARY(INTL_LIBRARIES intl c FIND_LIBRARY(INTL_LIBRARIES intl c
PATHS PATHS
/usr/lib/ /usr/lib/
/sw/lib /sw/lib
/usr/local/lib) # NO_DEFAULT_PATH /usr/local/lib) # NO_DEFAULT_PATH
FIND_PACKAGE(Gettext REQUIRED) FIND_PACKAGE(Gettext REQUIRED)
FIND_PACKAGE(XGettext REQUIRED)
ENDIF() ENDIF()
IF (OPENGL_MODE STREQUAL "Desktop") IF (OPENGL_MODE STREQUAL "Desktop")
FIND_PACKAGE(OpenGL REQUIRED) FIND_PACKAGE(OpenGL REQUIRED)
ENDIF() ENDIF()
IF(OPENGL_MODE STREQUAL "ES2") IF(OPENGL_MODE STREQUAL "ES2")
ADD_DEFINITIONS(-DUSE_OPENGL_ES2 -DQT_OPENGL_LIB -D_REENTRANT -DQT_GUI_LI B -DQT_CORE_LIB -DQT_SHARED) ADD_DEFINITIONS(-DUSE_OPENGL_ES2 -DQT_OPENGL_LIB -D_REENTRANT -DQT_GUI_LI B -DQT_CORE_LIB -DQT_SHARED)
# Make sure that no desktop OpenGL libraries are linked when OpenGLES is used # Make sure that no desktop OpenGL libraries are linked when OpenGLES is used
STRING(REPLACE "-lGL" "-lGLESv2" QT_LIBRARIES "${QT_LIBRARIES}") STRING(REPLACE "-lGL" "-lGLESv2" QT_LIBRARIES "${QT_LIBRARIES}")
ENDIF() ENDIF()
########### Set some global variables ########### ########### Set some global variables ###########
IF(UNIX AND NOT WIN32) IF(UNIX AND NOT WIN32)
IF(APPLE) IF(APPLE)
SET(CMAKE_INSTALL_PREFIX "${PROJECT_BINARY_DIR}/Stellarium.app/Contents") SET(CMAKE_INSTALL_PREFIX "${PROJECT_BINARY_DIR}/Stellarium.app/Contents")
ELSE(APPLE) ELSE(APPLE)
SET(INSTALL_DATADIR ${CMAKE_INSTALL_PREFIX}/share/stellarium) ADD_DEFINITIONS(-DINSTALL_DATADIR="${CMAKE_INSTALL_PREFIX}/share/stellari
SET(INSTALL_LOCALEDIR ${CMAKE_INSTALL_PREFIX}/share/locale) um")
ADD_DEFINITIONS(-DINSTALL_LOCALEDIR="${CMAKE_INSTALL_PREFIX}/share/locale
")
ENDIF() ENDIF()
ELSE() ELSE()
SET(INSTALL_DATADIR .) ADD_DEFINITIONS(-DINSTALL_DATADIR=".")
SET(INSTALL_LOCALEDIR ./locale) ADD_DEFINITIONS(-DINSTALL_LOCALEDIR="./locale")
ENDIF() ENDIF()
########### Get SVN revision for non-release builds ########### ########### Get SVN revision for non-release builds ###########
IF(NOT RELEASE_BUILD) IF(NOT RELEASE_BUILD)
FIND_PACKAGE(Subversion) FIND_PACKAGE(Subversion)
IF(Subversion_FOUND) IF(Subversion_FOUND)
Subversion_WC_INFO(${PROJECT_SOURCE_DIR} StelSvn) Subversion_WC_INFO(${PROJECT_SOURCE_DIR} StelSvn)
SET(SVN_REVISION ${StelSvn_WC_REVISION}) SET(SVN_REVISION ${StelSvn_WC_REVISION})
ADD_DEFINITIONS(-DSVN_REVISION="${SVN_REVISION}")
ENDIF() ENDIF()
ENDIF() ENDIF()
IF(ENABLE_STRATOSCRIPT_COMPAT) IF(ENABLE_STRATOSCRIPT_COMPAT)
ADD_DEFINITIONS(-DENABLE_STRATOSCRIPT_COMPAT) ADD_DEFINITIONS(-DENABLE_STRATOSCRIPT_COMPAT)
ENDIF() ENDIF()
########### Generate a config.h ########### ### Generate an Inno Setup project file ###
SET(PACKAGE_VERSION ${VERSION}) IF(WIN32)
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/confi SET(CONFIGURED_FILE_WARNING "Do not edit this file! It has been automatic
g.h) ally generated by CMake. Your changes will be lost the next time CMake is r
ADD_DEFINITIONS(-DHAVE_CONFIG_H) un.")
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/stellarium.iss.cmake ${CMAKE_SOURCE_DI
R}/stellarium.iss @ONLY)
ENDIF(WIN32)
IF(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWit hDebInfo") IF(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWit hDebInfo")
ADD_DEFINITIONS(-DQT_NO_DEBUG) ADD_DEFINITIONS(-DQT_NO_DEBUG)
ADD_DEFINITIONS(-DNDEBUG) ADD_DEFINITIONS(-DNDEBUG)
ENDIF() ENDIF()
########### uninstall files ############### ########### uninstall files ###############
CONFIGURE_FILE( CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY) IMMEDIATE @ONLY)
ADD_CUSTOM_TARGET(uninstall ADD_CUSTOM_TARGET(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" ) "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" )
########### Packaging info for CPack ########### ########### Packaging info for CPack ###########
INCLUDE(InstallRequiredSystemLibraries)
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Stellarium is a free open source pla IF(GENERATE_PACKAGE_TARGET)
netarium for your computer. It shows a realistic sky in 3D, just like what INCLUDE(InstallRequiredSystemLibraries)
you see with the naked eye, binoculars or a telescope.") SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Stellarium is a free open source p
SET(CPACK_PACKAGE_VENDOR "Stellarium's team") lanetarium for your computer. It shows a realistic sky in 3D, just like wha
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README") t you see with the naked eye, binoculars or a telescope.")
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING") SET(CPACK_PACKAGE_VENDOR "Stellarium's team")
SET(CPACK_PACKAGE_VERSION_MAJOR ${STELLARIUM_MAJOR}) SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
SET(CPACK_PACKAGE_VERSION_MINOR ${STELLARIUM_MINOR}) SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
SET(CPACK_PACKAGE_VERSION_PATCH ${STELLARIUM_PATCH}) SET(CPACK_PACKAGE_VERSION_MAJOR ${STELLARIUM_MAJOR})
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "stellarium") SET(CPACK_PACKAGE_VERSION_MINOR ${STELLARIUM_MINOR})
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "stellarium-${VERSION}") SET(CPACK_PACKAGE_VERSION_PATCH ${STELLARIUM_PATCH})
SET(CPACK_SOURCE_GENERATOR "TGZ") SET(CPACK_PACKAGE_INSTALL_DIRECTORY "stellarium")
SET(CPACK_GENERATOR "TGZ") SET(CPACK_SOURCE_PACKAGE_FILE_NAME "stellarium-${VERSION}")
SET(CPACK_STRIP_FILES "bin/stellarium") SET(CPACK_SOURCE_GENERATOR "TGZ")
SET(CPACK_PACKAGE_EXECUTABLES "stellarium" "Stellarium") SET(CPACK_GENERATOR "TGZ")
SET(CPACK_SOURCE_IGNORE_FILES "/CVS/" "/.svn/" "/.git/" "builds/" "Stellari SET(CPACK_STRIP_FILES "bin/stellarium")
um.tag$" "Stellarium.kdevelop.pcs$" "~$" "\\\\.swp$" "\\\\.#" "/#") SET(CPACK_PACKAGE_EXECUTABLES "stellarium" "Stellarium")
INCLUDE(CPack) SET(CPACK_SOURCE_IGNORE_FILES "/CVS/" "/.svn/" "/.git/" "builds/" "Stella
rium.tag$" "Stellarium.kdevelop.pcs$" "~$" "\\\\.swp$" "\\\\.#" "/#")
INCLUDE(CPack)
ENDIF()
########### Macosx Bundling ############### ########### Macosx Bundling ###############
IF(APPLE) IF(APPLE)
ADD_CUSTOM_TARGET(macosx_bundle bash util/macosx_bundle.sh ${CMAKE_INSTALL_ PREFIX} ${PROJECT_SOURCE_DIR} DEPENDS install WORKING_DIRECTORY ${PROJECT_S OURCE_DIR} COMMENT "making the macosx bundle." VERBATIM) ADD_CUSTOM_TARGET(macosx_bundle bash util/macosx_bundle.sh ${CMAKE_INSTALL_ PREFIX} ${PROJECT_SOURCE_DIR} DEPENDS install WORKING_DIRECTORY ${PROJECT_S OURCE_DIR} COMMENT "making the macosx bundle." VERBATIM)
ENDIF() ENDIF()
########### Generate doxygen doc ############### ########### Generate doxygen doc ###############
ADD_CUSTOM_TARGET(apidoc doxygen Doxyfile WORKING_DIRECTORY ${PROJECT_SOURC E_DIR} COMMENT "Generate the doxygen documentation into the builds/doc dire ctory.") ADD_CUSTOM_TARGET(apidoc doxygen Doxyfile WORKING_DIRECTORY ${PROJECT_SOURC E_DIR} COMMENT "Generate the doxygen documentation into the builds/doc dire ctory.")
########### Top level include directories ########### ########### Top level include directories ###########
# This will be used for all compilations in sub-directories # This will be used for all compilations in sub-directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src
${CMAKE_SOURCE_DIR}/src/core ${CMAKE_SOURCE_DIR}/src/core
${CMAKE_SOURCE_DIR}/src/core/modules
${CMAKE_SOURCE_DIR}/src/core/planetsephems
${CMAKE_SOURCE_DIR}/src/core/external
${CMAKE_SOURCE_DIR}/src/core/external/kfilter
${CMAKE_SOURCE_DIR}/src/core/external/glues_stel/source/
${CMAKE_SOURCE_DIR}/src/core/external/glues_stel/source/libtess
${CMAKE_SOURCE_DIR}/src/gui ${CMAKE_SOURCE_DIR}/src/gui
${CMAKE_SOURCE_DIR}/src/modules
${CMAKE_SOURCE_DIR}/src/planetsephems
${CMAKE_SOURCE_DIR}/src/external
${CMAKE_SOURCE_DIR}/src/scripting ${CMAKE_SOURCE_DIR}/src/scripting
${CMAKE_SOURCE_DIR}/src/external/kfilter
${CMAKE_SOURCE_DIR}/src/external/glues_stel/source/
${CMAKE_SOURCE_DIR}/src/external/glues_stel/source/libtess
${OPENGL_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR}
${ICONV_INCLUDE_DIR} ${ICONV_INCLUDE_DIR}
${INTL_INCLUDE_DIR} ${INTL_INCLUDE_DIR}
${ZLIB_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR}
${QT_INCLUDE_DIR}/QtScript ${QT_INCLUDE_DIR}/QtScript
${QT_QTSCRIPT_INCLUDE_DIR} ${QT_QTSCRIPT_INCLUDE_DIR}
${CMAKE_BINARY_DIR}/src ${CMAKE_BINARY_DIR}/src
${QT_QTTEST_INCLUDE_DIR} ${QT_QTTEST_INCLUDE_DIR}
${QT_DECLARATIVE_INCLUDE_DIR} ${QT_DECLARATIVE_INCLUDE_DIR}
) )
skipping to change at line 320 skipping to change at line 327
ADD_SUBDIRECTORY( data ) ADD_SUBDIRECTORY( data )
ADD_SUBDIRECTORY( src ) ADD_SUBDIRECTORY( src )
ADD_SUBDIRECTORY( textures ) ADD_SUBDIRECTORY( textures )
ADD_SUBDIRECTORY( doc ) ADD_SUBDIRECTORY( doc )
IF(ENABLE_NLS) IF(ENABLE_NLS)
ADD_SUBDIRECTORY( po ) ADD_SUBDIRECTORY( po )
ENDIF() ENDIF()
ADD_SUBDIRECTORY( landscapes ) ADD_SUBDIRECTORY( landscapes )
ADD_SUBDIRECTORY( skycultures ) ADD_SUBDIRECTORY( skycultures )
ADD_SUBDIRECTORY( nebulae ) ADD_SUBDIRECTORY( nebulae )
ADD_SUBDIRECTORY( scripts ) IF(ENABLE_SCRIPTING)
ADD_SUBDIRECTORY( scripts )
ENDIF()
ADD_SUBDIRECTORY( stars ) ADD_SUBDIRECTORY( stars )
ADD_SUBDIRECTORY( plugins ) ADD_SUBDIRECTORY( plugins )
 End of changes. 30 change blocks. 
77 lines changed or deleted 94 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/