CMakeLists.txt   CMakeLists.txt 
# Minimal version of cmake for using with Qt5 is 2.8.9
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.7) CMAKE_MINIMUM_REQUIRED(VERSION 2.8.7)
# Avoid repeating the IF statement in the ENDIF and ELSE # Avoid repeating the IF statement in the ENDIF and ELSE
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 "12") SET(STELLARIUM_MINOR "12")
SET(STELLARIUM_PATCH "1") SET(STELLARIUM_PATCH "2")
SET(VERSION "${STELLARIUM_MAJOR}.${STELLARIUM_MINOR}.${STELLARIUM_PATCH}") SET(VERSION "${STELLARIUM_MAJOR}.${STELLARIUM_MINOR}.${STELLARIUM_PATCH}")
SET(PACKAGE stellarium) SET(PACKAGE stellarium)
SET(PACKAGE_VERSION "${VERSION}") SET(PACKAGE_VERSION "${VERSION}")
ADD_DEFINITIONS(-DPACKAGE_VERSION="${PACKAGE_VERSION}") ADD_DEFINITIONS(-DPACKAGE_VERSION="${PACKAGE_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 ###########
skipping to change at line 39 skipping to change at line 40
# Add gprof build options if necessary. Note gmon.out will be created in w orking directory when Stellarium is executed # Add gprof build options if necessary. Note gmon.out will be created in w orking directory when Stellarium is executed
IF(${CMAKE_BUILD_TYPE} MATCHES "GProf") IF(${CMAKE_BUILD_TYPE} MATCHES "GProf")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pg") SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pg")
ENDIF() ENDIF()
# Add valgrind build options if necessary # Add valgrind build options if necessary
IF(${CMAKE_BUILD_TYPE} MATCHES "Valgrind") IF(${CMAKE_BUILD_TYPE} MATCHES "Valgrind")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g")
ENDIF() ENDIF()
IF(NOT STELLARIUM_SPLASH) IF(NOT STELLARIUM_SPLASH)
SET(STELLARIUM_SPLASH Release CACHE STRING "Choose the type of Stellarium' s splash image, options are: Release Development ReleaseCandidate." FORCE) SET(STELLARIUM_SPLASH Release CACHE STRING "Choose the type of Stellarium' s splash image, options are: Release Development ReleaseCandidate." FORCE)
ENDIF() ENDIF()
ADD_DEFINITIONS(-DSTELLARIUM_SPLASH="${STELLARIUM_SPLASH}") ADD_DEFINITIONS(-DSTELLARIUM_SPLASH="${STELLARIUM_SPLASH}")
IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
SET(APPLE 1) SET(APPLE 1)
ENDIF() ENDIF()
IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
EXEC_PROGRAM(${CMAKE_C_COMPILER} ARGS "-v" OUTPUT_VARIABLE _clang_version_ info) EXEC_PROGRAM(${CMAKE_C_COMPILER} ARGS "-v" OUTPUT_VARIABLE _clang_version_ info)
STRING(REGEX REPLACE "^.*[ ]([0-9]+)\\.[0-9].*$" "\\1" CLANG_MAJOR "${_cla ng_version_info}") STRING(REGEX REPLACE "^.*[ ]([0-9]+)\\.[0-9].*$" "\\1" CLANG_MAJOR "${_cla ng_version_info}")
STRING(REGEX REPLACE "^.*[ ][0-9]+\\.([0-9]).*$" "\\1" CLANG_MINOR "${_cla ng_version_info}") STRING(REGEX REPLACE "^.*[ ][0-9]+\\.([0-9]).*$" "\\1" CLANG_MINOR "${_cla ng_version_info}")
MESSAGE(STATUS "Found Clang ${CLANG_MAJOR}.${CLANG_MINOR}") MESSAGE(STATUS "Found Clang ${CLANG_MAJOR}.${CLANG_MINOR}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Woverloaded-virtual")
ELSE() ELSE()
SET(CLANG_MAJOR 0) SET(CLANG_MAJOR 0)
SET(CLANG_MINOR 0) SET(CLANG_MINOR 0)
ENDIF() ENDIF()
SET(CLANG_VERSION "${CLANG_MAJOR}.${CLANG_MINOR}") SET(CLANG_VERSION "${CLANG_MAJOR}.${CLANG_MINOR}")
IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC) IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
EXEC_PROGRAM(${CMAKE_C_COMPILER} ARGS "-dumpversion" OUTPUT_VARIABLE _gcc_ version_info) EXEC_PROGRAM(${CMAKE_C_COMPILER} ARGS "-dumpversion" OUTPUT_VARIABLE _gcc_ version_info)
STRING(REGEX REPLACE "^([0-9]+).*$" "\\1" GCC_MAJOR ${_g cc_version_info}) STRING(REGEX REPLACE "^([0-9]+).*$" "\\1" GCC_MAJOR ${_g cc_version_info})
STRING(REGEX REPLACE "^[0-9]+\\.([0-9]+).*$" "\\1" GCC_MINOR ${_g cc_version_info}) STRING(REGEX REPLACE "^[0-9]+\\.([0-9]+).*$" "\\1" GCC_MINOR ${_g cc_version_info})
skipping to change at line 89 skipping to change at line 89
MESSAGE(STATUS "Found GCC ${GCC_MAJOR}.${GCC_MINOR}") MESSAGE(STATUS "Found GCC ${GCC_MAJOR}.${GCC_MINOR}")
SET(COMPILER_VERSION gcc${GCC_MAJOR}${GCC_MINOR}${GCC_PATCH}) SET(COMPILER_VERSION gcc${GCC_MAJOR}${GCC_MINOR}${GCC_PATCH})
ELSE() ELSE()
SET(GCC_MAJOR 0) SET(GCC_MAJOR 0)
SET(GCC_MINOR 0) SET(GCC_MINOR 0)
ENDIF() ENDIF()
SET(GCC_VERSION "${GCC_MAJOR}.${GCC_MINOR}") SET(GCC_VERSION "${GCC_MAJOR}.${GCC_MINOR}")
IF(UNIX AND NOT WIN32) IF(UNIX AND NOT WIN32)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter") # additional C compile flags SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter") # additional C compile flags
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra") # additional C PP compile flags SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-paramete r") # additional CPP compile flags
ELSEIF ("${CMAKE_SIZEOF_VOID_P}" EQUAL "4") ELSEIF ("${CMAKE_SIZEOF_VOID_P}" EQUAL "4")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fexceptions -fident -mthreads") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fexceptions -fident -mthreads")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wsign-promo -fexceptions -f ident -mthreads") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wsign-promo -fexceptions -f ident -mthreads")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wsign-promo -fexcep tions -fident -mthreads -mwindows") # --large-address-aware --enable-runt ime-pseudo-reloc --verbose SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wsign-promo -fexcep tions -fident -mthreads -mwindows") # --large-address-aware --enable-runt ime-pseudo-reloc --verbose
ELSEIF ("${CMAKE_SIZEOF_VOID_P}" EQUAL "8") ELSEIF ("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fexceptions -fident -mthreads") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fexceptions -fident -mthreads")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wsign-promo -fexceptions -f ident -mthreads") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wsign-promo -fexceptions -f ident -mthreads")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wsign-promo -fexcep tions -fident -mthreads -mwindows") # --enable-runtime-pseudo-reloc --verb ose SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wsign-promo -fexcep tions -fident -mthreads -mwindows") # --enable-runtime-pseudo-reloc --verb ose
ENDIF() ENDIF()
IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Woverloaded-virtual -Wno-unused-p
rivate-field -Wno-uninitialized -Wno-tautological-constant-out-of-range-com
pare")
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(BUILD_FOR_MAEMO 0 CACHE BOOL "Set to 1 or true if you want to build for maemo target") SET(BUILD_FOR_MAEMO 0 CACHE BOOL "Set to 1 or true if you want to build for maemo target")
IF(BUILD_FOR_MAEMO) IF(BUILD_FOR_MAEMO)
# Optimize for N900 ARM processor # Optimize for N900 ARM processor
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-omit-frame-pointer -fno-optimize -sibling-calls -D_REENTRANT -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GL YPH_CACHE_WIDTH=1024 -mtune=cortex-a8 -march=armv7-a -ftree-vectorize -mfpu =neon -mfloat-abi=softfp -ffast-math -funroll-loops -DBUILD_FOR_MAEMO") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-omit-frame-pointer -fno-optimize -sibling-calls -D_REENTRANT -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GL YPH_CACHE_WIDTH=1024 -mtune=cortex-a8 -march=armv7-a -ftree-vectorize -mfpu =neon -mfloat-abi=softfp -ffast-math -funroll-loops -DBUILD_FOR_MAEMO")
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") 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()
# FreeBSD-specific compiler flags # FreeBSD-specific compiler flags
# resolve bug for FreeBSD/amd64 and NVIDIA proprietary drivers # resolve bug for FreeBSD/amd64 and NVIDIA proprietary drivers
IF (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") IF (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
# Use -pthread compilation option to properly link to threading library # Use -pthread compilation option to properly link to threading library
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
IF(${GCC_VERSION} STRGREATER "4.7")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-local-typedefs")
ENDIF()
ENDIF (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") ENDIF (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
# 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") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-common -Wall -Wextra")
IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-private-field -Wno-
unknown-warning-option")
ENDIF()
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")
# uncomment one of the following, depending on minimum OS level you want # uncomment one of the following, depending on minimum OS level you want
#SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.5") #SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.5")
#SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.5.sdk/") #SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.5.sdk/")
#SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.6") #SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.6")
#SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.6.sdk/") #SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.6.sdk/")
# uncomment one of the following, depending on what platforms you want. # uncomment one of the following, depending on what platforms you want.
# NOTE: Qt build for Cocoa is Intel only. Qt with Carbon is both, but doe s not seem # NOTE: Qt build for Cocoa is Intel only. Qt with Carbon is both, but doe s not seem
skipping to change at line 158 skipping to change at line 168
########### Others ########### ########### Others ###########
# Activate translation with gettext # Activate translation with gettext
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) IF(ENABLE_NLS)
ADD_DEFINITIONS(-DENABLE_NLS) ADD_DEFINITIONS(-DENABLE_NLS)
ENDIF() ENDIF()
SET(RELEASE_BUILD 1 CACHE BOOL "Flag this build as an official release.") 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.") SET(ENABLE_SOUND 1 CACHE BOOL "Define whether sound support should be activ ated.")
SET(ENABLE_SCRIPTING 1 CACHE BOOL "Define whether scripting features should be activated.") SET(ENABLE_SCRIPTING 1 CACHE BOOL "Define whether scripting features should be activated.")
IF(ENABLE_SCRIPTING) IF(ENABLE_SCRIPTING)
# (De-)Activate the script edit console # (De-)Activate the script edit console
SET(ENABLE_SCRIPT_CONSOLE 1 CACHE BOOL "Define whether to build the scrip t console feature.") SET(ENABLE_SCRIPT_CONSOLE 1 CACHE BOOL "Define whether to build the scrip t console feature.")
IF(ENABLE_SCRIPT_CONSOLE) IF(ENABLE_SCRIPT_CONSOLE)
ADD_DEFINITIONS(-DENABLE_SCRIPT_CONSOLE) ADD_DEFINITIONS(-DENABLE_SCRIPT_CONSOLE)
ENDIF() ENDIF()
SET(ENABLE_STRATOSCRIPT_COMPAT 0 CACHE BOOL "Set to 1 or true if you want to build the Stratoscript compatibility mode") SET(ENABLE_STRATOSCRIPT_COMPAT 0 CACHE BOOL "Set to 1 or true if you want to build the Stratoscript compatibility mode")
ELSE() ELSE()
skipping to change at line 199 skipping to change at line 209
IF(WIN32 OR APPLE) IF(WIN32 OR APPLE)
ADD_DEFINITIONS(-DDEFAULT_GRAPHICS_SYSTEM="native") ADD_DEFINITIONS(-DDEFAULT_GRAPHICS_SYSTEM="native")
ELSE() ELSE()
ADD_DEFINITIONS(-DDEFAULT_GRAPHICS_SYSTEM="raster") ADD_DEFINITIONS(-DDEFAULT_GRAPHICS_SYSTEM="raster")
ENDIF() ENDIF()
########### Plugin setup ############# ########### Plugin setup #############
SET(BUILD_STATIC_PLUGINS 1 CACHE BOOL "Define whether plugins should be com piled statically and linked to the main program") SET(BUILD_STATIC_PLUGINS 1 CACHE BOOL "Define whether plugins should be com piled statically and linked to the main program")
SET(BUILD_DYNAMIC_PLUGINS 0 CACHE BOOL "Define whether plugins should be co mpiled dynamically") SET(BUILD_DYNAMIC_PLUGINS 0 CACHE BOOL "Define whether plugins should be co mpiled dynamically")
#### demo plugins ####
SET(USE_PLUGIN_HELLOSTELMODULE 0 CACHE BOOL "Define whether the HelloStelMo dule plugin should be created.") SET(USE_PLUGIN_HELLOSTELMODULE 0 CACHE BOOL "Define whether the HelloStelMo dule plugin should be created.")
SET(USE_PLUGIN_SIMPLEDRAWLINE 0 CACHE BOOL "Define whether the Simple Draw Line plugin should be created.") SET(USE_PLUGIN_SIMPLEDRAWLINE 0 CACHE BOOL "Define whether the Simple Draw Line plugin should be created.")
#### work plugins ####
SET(USE_PLUGIN_ANGLEMEASURE 1 CACHE BOOL "Define whether the AngleMeasure p lugin should be created.") SET(USE_PLUGIN_ANGLEMEASURE 1 CACHE BOOL "Define whether the AngleMeasure p lugin should be created.")
SET(USE_PLUGIN_COMPASSMARKS 1 CACHE BOOL "Define whether the CompassMarks p lugin should be created.") SET(USE_PLUGIN_COMPASSMARKS 1 CACHE BOOL "Define whether the CompassMarks p lugin should be created.")
SET(USE_PLUGIN_SATELLITES 1 CACHE BOOL "Define whether the Satellites plugi SET(USE_PLUGIN_EXOPLANETS 1 CACHE BOOL "Define whether the Exoplanets plugi
n should be created.") n should be created.")
SET(USE_PLUGIN_TELESCOPECONTROL 1 CACHE BOOL "Define whether the TelescopeC
ontrol plug-in should be created.")
SET(USE_PLUGIN_LOGBOOK 0 CACHE BOOL "Define whether the LogBook plugin shou ld be created.") SET(USE_PLUGIN_LOGBOOK 0 CACHE BOOL "Define whether the LogBook plugin shou ld be created.")
SET(USE_PLUGIN_OBSERVABILITY 1 CACHE BOOL "Define whether the Observability plugin should be created.")
SET(USE_PLUGIN_OCULARS 1 CACHE BOOL "Define whether the Oculars plugin shou ld be created.") SET(USE_PLUGIN_OCULARS 1 CACHE BOOL "Define whether the Oculars plugin shou ld be created.")
SET(USE_PLUGIN_PULSARS 1 CACHE BOOL "Define whether the Pulsars plugin shou
ld be created.")
SET(USE_PLUGIN_QUASARS 1 CACHE BOOL "Define whether the Quasars plugin shou
ld be created.")
SET(USE_PLUGIN_RENDERERSTATISTICS 0 CACHE BOOL "Define whether the Renderer
Statistics plugin should be created.")
SET(USE_PLUGIN_SATELLITES 1 CACHE BOOL "Define whether the Satellites plugi
n should be created.")
SET(USE_PLUGIN_SOLARSYSTEMEDITOR 1 CACHE BOOL "Define whether the Solar Sys
tem Editor should be built.")
SET(USE_PLUGIN_SUPERNOVAE 1 CACHE BOOL "Define whether the Historical Super
nova plugin should be created.")
SET(USE_PLUGIN_SVMT 0 CACHE BOOL "Define whether the SVMT plugin should be created.") SET(USE_PLUGIN_SVMT 0 CACHE BOOL "Define whether the SVMT plugin should be created.")
SET(USE_PLUGIN_TELESCOPECONTROL 1 CACHE BOOL "Define whether the TelescopeC ontrol plug-in should be created.")
SET(USE_PLUGIN_TEXTUSERINTERFACE 1 CACHE BOOL "Define whether the TextUserI nterface plugin should be created.") SET(USE_PLUGIN_TEXTUSERINTERFACE 1 CACHE BOOL "Define whether the TextUserI nterface plugin should be created.")
SET(USE_PLUGIN_TIMEZONECONFIGURATION 1 CACHE BOOL "Define whether the TimeZ oneConfiguration plugin should be created.") SET(USE_PLUGIN_TIMEZONECONFIGURATION 1 CACHE BOOL "Define whether the TimeZ oneConfiguration plugin should be created.")
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.")
SET(USE_PLUGIN_SOLARSYSTEMEDITOR 1 CACHE BOOL "Define whether the Solar Sys
tem Editor should be built.")
SET(USE_PLUGIN_SUPERNOVAE 1 CACHE BOOL "Define whether the Historical Super
nova plugin should be created.")
SET(USE_PLUGIN_QUASARS 1 CACHE BOOL "Define whether the Quasars plugin shou
ld be created.")
SET(USE_PLUGIN_PULSARS 1 CACHE BOOL "Define whether the Pulsars plugin shou
ld be created.")
SET(USE_PLUGIN_EXOPLANETS 1 CACHE BOOL "Define whether the Exoplanets plugi
n should be created.")
SET(USE_PLUGIN_OBSERVABILITY 1 CACHE BOOL "Define whether the Observability
plugin should be created.")
SET(USE_PLUGIN_RENDERERSTATISTICS 0 CACHE BOOL "Define whether the Renderer
Statistics plugin should be 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_SVMT) IF (USE_PLUGIN_SVMT)
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
SET(QT_USE_QTWEBKIT TRUE) # For SVMT we also need QML module, this l ine doesn't seem to work right now SET(QT_USE_QTWEBKIT TRUE) # For SVMT we also need QML module, this l ine doesn't seem to work right now
ENDIF() ENDIF()
skipping to change at line 366 skipping to change at line 379
IF(WIN32) IF(WIN32)
# Try to guess the MinGW /bin directory... # Try to guess the MinGW /bin directory...
GET_FILENAME_COMPONENT(MINGW_BIN_DIRECTORY ${CMAKE_CXX_COMPILER} PATH) GET_FILENAME_COMPONENT(MINGW_BIN_DIRECTORY ${CMAKE_CXX_COMPILER} PATH)
IF ("${CMAKE_SIZEOF_VOID_P}" EQUAL "4") IF ("${CMAKE_SIZEOF_VOID_P}" EQUAL "4")
SET(ISS_ARCHITECTURE_SPECIFIC ";In the 64-bit only version, this line s witches the installer to 64-bit mode.") SET(ISS_ARCHITECTURE_SPECIFIC ";In the 64-bit only version, this line s witches the installer to 64-bit mode.")
SET(ISS_PACKAGE_PLATFORM "win32") SET(ISS_PACKAGE_PLATFORM "win32")
SET(ISS_ARCH_SPECIFIC_MINGW_LIBS "Source: \"${MINGW_BIN_DIRECTORY}/libs tdc++*.dll\"; DestDir: \"{app}\";\nSource: \"${MINGW_BIN_DIRECTORY}/libgcc_ s_dw2-1.dll\"; DestDir: \"{app}\";\nSource: \"${MINGW_BIN_DIRECTORY}/mingwm 10.dll\"; DestDir: \"{app}\";") SET(ISS_ARCH_SPECIFIC_MINGW_LIBS "Source: \"${MINGW_BIN_DIRECTORY}/libs tdc++*.dll\"; DestDir: \"{app}\";\nSource: \"${MINGW_BIN_DIRECTORY}/libgcc_ s_dw2-1.dll\"; DestDir: \"{app}\";\nSource: \"${MINGW_BIN_DIRECTORY}/mingwm 10.dll\"; DestDir: \"{app}\";")
ELSEIF ("${CMAKE_SIZEOF_VOID_P}" EQUAL "8") ELSEIF ("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
SET(ISS_ARCHITECTURE_SPECIFIC ";Make the installer run only on win64:\n ArchitecturesAllowed=x64\n;Switch to 64-bit install mode:\nArchitecturesIns tallIn64BitMode=x64") SET(ISS_ARCHITECTURE_SPECIFIC ";Make the installer run only on win64:\n ArchitecturesAllowed=x64\n;Switch to 64-bit install mode:\nArchitecturesIns tallIn64BitMode=x64")
SET(ISS_PACKAGE_PLATFORM "win64") SET(ISS_PACKAGE_PLATFORM "win64")
SET(ISS_ARCH_SPECIFIC_MINGW_LIBS "Source: \"${MINGW_BIN_DIRECTORY}/libs tdc++*.dll\"; DestDir: \"{app}\";") SET(ISS_ARCH_SPECIFIC_MINGW_LIBS "Source: \"${MINGW_BIN_DIRECTORY}/libs tdc++*.dll\"; DestDir: \"{app}\";\nSource: \"@QT_BINARY_DIR@/libwinpthread* .dll\"; DestDir: \"{app}\";\nSource: \"@QT_BINARY_DIR@/libgcc_s_sjlj*.dll\" ; DestDir: \"{app}\";")
ENDIF() ENDIF()
SET(ISS_AUTOGENERATED_WARNING "Do not edit this file! It has been automat ically generated by CMake. Your changes will be lost the next time CMake is run.") SET(ISS_AUTOGENERATED_WARNING "Do not edit this file! It has been automat ically generated by CMake. Your changes will be lost the next time CMake is run.")
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/stellarium.iss.cmake ${CMAKE_SOURCE_DI R}/stellarium.iss @ONLY) CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/stellarium.iss.cmake ${CMAKE_SOURCE_DI R}/stellarium.iss @ONLY)
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/stellarium-patch.iss.cmake ${CMAKE_SOU RCE_DIR}/stellarium-patch.iss @ONLY)
ENDIF(WIN32) ENDIF(WIN32)
########## Release build tweaks ########### ########## Release build tweaks ###########
#-O1 and -O2 break build (cause crash at startup) on Windows. #-O1 and -O2 break build (cause crash at startup) on Windows.
# #
# However, setting all -O1 and -O2 options _except_ -fomit-frame-pointer wo rks. # However, setting all -O1 and -O2 options _except_ -fomit-frame-pointer wo rks.
# yet -O1 with -fno-omit-frame-pointer does not. So we use this workaround. # yet -O1 with -fno-omit-frame-pointer does not. So we use this workaround.
# #
# Yes, it's ugly. # Yes, it's ugly.
skipping to change at line 393 skipping to change at line 407
IF(WIN32) IF(WIN32)
IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC) IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
IF(GCC_VERSION VERSION_EQUAL 4.4) IF(GCC_VERSION VERSION_EQUAL 4.4)
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O0 -fauto-inc-de c -fcprop-registers -fdce -fdefer-pop -fdelayed-branch -fdse -fguess-branch -probability -fif-conversion2 -fif-conversion -fipa-pure-const -fipa-refere nce -fmerge-constants -fsplit-wide-types -ftree-builtin-call-dce -ftree-ccp -ftree-ch -ftree-copyrename -ftree-dce -ftree-dominator-opts -ftree-dse -f tree-fre -ftree-sra -ftree-ter -funit-at-a-time -fthread-jumps -falign-func tions -falign-jumps -falign-loops -falign-labels -fcaller-saves -fcrossjump ing -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-pointer-checks -fexp ensive-optimizations -fgcse -fgcse-lm -finline-small-functions -findirect-i nlining -foptimize-sibling-calls -fpeephole2 -fregmove -freorder-blocks -fr eorder-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec -fs chedule-insns -fschedule-insns2 -fstrict-aliasing -fstrict-overflow -ftree- switch-conversion -ftree-pre -ftree-vrp") SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O0 -fauto-inc-de c -fcprop-registers -fdce -fdefer-pop -fdelayed-branch -fdse -fguess-branch -probability -fif-conversion2 -fif-conversion -fipa-pure-const -fipa-refere nce -fmerge-constants -fsplit-wide-types -ftree-builtin-call-dce -ftree-ccp -ftree-ch -ftree-copyrename -ftree-dce -ftree-dominator-opts -ftree-dse -f tree-fre -ftree-sra -ftree-ter -funit-at-a-time -fthread-jumps -falign-func tions -falign-jumps -falign-loops -falign-labels -fcaller-saves -fcrossjump ing -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-pointer-checks -fexp ensive-optimizations -fgcse -fgcse-lm -finline-small-functions -findirect-i nlining -foptimize-sibling-calls -fpeephole2 -fregmove -freorder-blocks -fr eorder-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec -fs chedule-insns -fschedule-insns2 -fstrict-aliasing -fstrict-overflow -ftree- switch-conversion -ftree-pre -ftree-vrp")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O0 -fauto-in c-dec -fcprop-registers -fdce -fdefer-pop -fdelayed-branch -fdse -fguess-br anch-probability -fif-conversion2 -fif-conversion -fipa-pure-const -fipa-re ference -fmerge-constants -fsplit-wide-types -ftree-builtin-call-dce -ftree -ccp -ftree-ch -ftree-copyrename -ftree-dce -ftree-dominator-opts -ftree-ds e -ftree-fre -ftree-sra -ftree-ter -funit-at-a-time -fthread-jumps -falign- functions -falign-jumps -falign-loops -falign-labels -fcaller-saves -fcross jumping -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-pointer-checks - fexpensive-optimizations -fgcse -fgcse-lm -finline-small-functions -findire ct-inlining -foptimize-sibling-calls -fpeephole2 -fregmove -freorder-blocks -freorder-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec -fschedule-insns -fschedule-insns2 -fstrict-aliasing -fstrict-overflow -ft ree-switch-conversion -ftree-pre -ftree-vrp") SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O0 -fauto-in c-dec -fcprop-registers -fdce -fdefer-pop -fdelayed-branch -fdse -fguess-br anch-probability -fif-conversion2 -fif-conversion -fipa-pure-const -fipa-re ference -fmerge-constants -fsplit-wide-types -ftree-builtin-call-dce -ftree -ccp -ftree-ch -ftree-copyrename -ftree-dce -ftree-dominator-opts -ftree-ds e -ftree-fre -ftree-sra -ftree-ter -funit-at-a-time -fthread-jumps -falign- functions -falign-jumps -falign-loops -falign-labels -fcaller-saves -fcross jumping -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-pointer-checks - fexpensive-optimizations -fgcse -fgcse-lm -finline-small-functions -findire ct-inlining -foptimize-sibling-calls -fpeephole2 -fregmove -freorder-blocks -freorder-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec -fschedule-insns -fschedule-insns2 -fstrict-aliasing -fstrict-overflow -ft ree-switch-conversion -ftree-pre -ftree-vrp")
SET(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O0 -fauto-inc-dec -fcprop-registers -fdce -fdefer-pop -fdelayed-branch -fdse -fguess-branch-probability -fif-conversion2 -fif-conversion -fipa-pure-cons t -fipa-reference -fmerge-constants -fsplit-wide-types -ftree-builtin-call- dce -ftree-ccp -ftree-ch -ftree-copyrename -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-fre -ftree-sra -ftree-ter -funit-at-a-time -fthread-jump s -falign-functions -falign-jumps -falign-loops -falign-labels -fcaller-sav es -fcrossjumping -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-pointe r-checks -fexpensive-optimizations -fgcse -fgcse-lm -finline-small-function s -findirect-inlining -foptimize-sibling-calls -fpeephole2 -fregmove -freor der-blocks -freorder-functions -frerun-cse-after-loop -fsched-interblock -f sched-spec -fschedule-insns -fschedule-insns2 -fstrict-aliasing -fstrict-ov erflow -ftree-switch-conversion -ftree-pre -ftree-vrp") SET(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O0 -fauto-inc-dec -fcprop-registers -fdce -fdefer-pop -fdelayed-branch -fdse -fguess-branch-probability -fif-conversion2 -fif-conversion -fipa-pure-cons t -fipa-reference -fmerge-constants -fsplit-wide-types -ftree-builtin-call- dce -ftree-ccp -ftree-ch -ftree-copyrename -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-fre -ftree-sra -ftree-ter -funit-at-a-time -fthread-jump s -falign-functions -falign-jumps -falign-loops -falign-labels -fcaller-sav es -fcrossjumping -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-pointe r-checks -fexpensive-optimizations -fgcse -fgcse-lm -finline-small-function s -findirect-inlining -foptimize-sibling-calls -fpeephole2 -fregmove -freor der-blocks -freorder-functions -frerun-cse-after-loop -fsched-interblock -f sched-spec -fschedule-insns -fschedule-insns2 -fstrict-aliasing -fstrict-ov erflow -ftree-switch-conversion -ftree-pre -ftree-vrp")
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -O0 -fauto-inc-dec -fcprop-registers -fdce -fdefer-pop -fdelayed-branch -f dse -fguess-branch-probability -fif-conversion2 -fif-conversion -fipa-pure- const -fipa-reference -fmerge-constants -fsplit-wide-types -ftree-builtin-c all-dce -ftree-ccp -ftree-ch -ftree-copyrename -ftree-dce -ftree-dominator- opts -ftree-dse -ftree-fre -ftree-sra -ftree-ter -funit-at-a-time -fthread- jumps -falign-functions -falign-jumps -falign-loops -falign-labels -fcaller -saves -fcrossjumping -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-po inter-checks -fexpensive-optimizations -fgcse -fgcse-lm -finline-small-func tions -findirect-inlining -foptimize-sibling-calls -fpeephole2 -fregmove -f reorder-blocks -freorder-functions -frerun-cse-after-loop -fsched-interbloc k -fsched-spec -fschedule-insns -fschedule-insns2 -fstrict-aliasing -fstric t-overflow -ftree-switch-conversion -ftree-pre -ftree-vrp") SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -O0 -fauto-inc-dec -fcprop-registers -fdce -fdefer-pop -fdelayed-branch -f dse -fguess-branch-probability -fif-conversion2 -fif-conversion -fipa-pure- const -fipa-reference -fmerge-constants -fsplit-wide-types -ftree-builtin-c all-dce -ftree-ccp -ftree-ch -ftree-copyrename -ftree-dce -ftree-dominator- opts -ftree-dse -ftree-fre -ftree-sra -ftree-ter -funit-at-a-time -fthread- jumps -falign-functions -falign-jumps -falign-loops -falign-labels -fcaller -saves -fcrossjumping -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-po inter-checks -fexpensive-optimizations -fgcse -fgcse-lm -finline-small-func tions -findirect-inlining -foptimize-sibling-calls -fpeephole2 -fregmove -f reorder-blocks -freorder-functions -frerun-cse-after-loop -fsched-interbloc k -fsched-spec -fschedule-insns -fschedule-insns2 -fstrict-aliasing -fstric t-overflow -ftree-switch-conversion -ftree-pre -ftree-vrp")
ELSEIF(GCC_VERSION VERSION_EQUAL 4.6 OR GCC_VERSION VERSION_EQUAL 4.7) ELSEIF(GCC_VERSION VERSION_EQUAL 4.6 OR GCC_VERSION VERSION_EQUAL 4.7)
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O0 -fauto-inc-de c -fcompare-elim -fcprop-registers -fdce -fdefer-pop -fdelayed-branch -fdse -fguess-branch-probability -fif-conversion2 -fif-conversion -fipa-pure-con st -fipa-reference -fipa-profile -fmerge-constants -fsplit-wide-types -ftre e-bit-ccp -ftree-builtin-call-dce -ftree-ccp -ftree-ch -ftree-copyrename -f tree-dce -ftree-dominator-opts -ftree-dse -ftree-forwprop -ftree-fre -ftree -phiprop -ftree-sra -ftree-pta -ftree-ter -funit-at-a-time -fthread-jumps - falign-functions -falign-jumps -falign-loops -falign-labels -fcaller-saves -fcrossjumping -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-pointer-c hecks -fdevirtualize -fexpensive-optimizations -fgcse -fgcse-lm -finline-sm all-functions -findirect-inlining -fipa-sra -foptimize-sibling-calls -fpart ial-inlining -fpeephole2 -fregmove -freorder-blocks -freorder-functions -fr erun-cse-after-loop -fsched-interblock -fsched-spec -fschedule-insns -fsche dule-insns2 -fstrict-aliasing -fstrict-overflow -ftree-switch-conversion -f tree-pre -ftree-vrp") SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O0 -fauto-inc-de c -fcompare-elim -fcprop-registers -fdce -fdefer-pop -fdelayed-branch -fdse -fguess-branch-probability -fif-conversion2 -fif-conversion -fipa-pure-con st -fipa-reference -fipa-profile -fmerge-constants -fsplit-wide-types -ftre e-bit-ccp -ftree-builtin-call-dce -ftree-ccp -ftree-ch -ftree-copyrename -f tree-dce -ftree-dominator-opts -ftree-dse -ftree-forwprop -ftree-fre -ftree -phiprop -ftree-sra -ftree-pta -ftree-ter -funit-at-a-time -fthread-jumps - falign-functions -falign-jumps -falign-loops -falign-labels -fcaller-saves -fcrossjumping -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-pointer-c hecks -fdevirtualize -fexpensive-optimizations -fgcse -fgcse-lm -finline-sm all-functions -findirect-inlining -fipa-sra -foptimize-sibling-calls -fpart ial-inlining -fpeephole2 -fregmove -freorder-blocks -freorder-functions -fr erun-cse-after-loop -fsched-interblock -fsched-spec -fschedule-insns -fsche dule-insns2 -fstrict-aliasing -fstrict-overflow -ftree-switch-conversion -f tree-pre -ftree-vrp")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O0 -fauto-in c-dec -fcompare-elim -fcprop-registers -fdce -fdefer-pop -fdelayed-branch - fdse -fguess-branch-probability -fif-conversion2 -fif-conversion -fipa-pure -const -fipa-reference -fipa-profile -fmerge-constants -fsplit-wide-types - ftree-bit-ccp -ftree-builtin-call-dce -ftree-ccp -ftree-ch -ftree-copyrenam e -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-forwprop -ftree-fre -f tree-phiprop -ftree-sra -ftree-pta -ftree-ter -funit-at-a-time -fthread-jum ps -falign-functions -falign-jumps -falign-loops -falign-labels -fcaller-sa ves -fcrossjumping -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-point er-checks -fdevirtualize -fexpensive-optimizations -fgcse -fgcse-lm -finlin e-small-functions -findirect-inlining -fipa-sra -foptimize-sibling-calls -f partial-inlining -fpeephole2 -fregmove -freorder-blocks -freorder-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec -fschedule-insns -f schedule-insns2 -fstrict-aliasing -fstrict-overflow -ftree-switch-conversio n -ftree-pre -ftree-vrp") SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O0 -fauto-in c-dec -fcompare-elim -fcprop-registers -fdce -fdefer-pop -fdelayed-branch - fdse -fguess-branch-probability -fif-conversion2 -fif-conversion -fipa-pure -const -fipa-reference -fipa-profile -fmerge-constants -fsplit-wide-types - ftree-bit-ccp -ftree-builtin-call-dce -ftree-ccp -ftree-ch -ftree-copyrenam e -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-forwprop -ftree-fre -f tree-phiprop -ftree-sra -ftree-pta -ftree-ter -funit-at-a-time -fthread-jum ps -falign-functions -falign-jumps -falign-loops -falign-labels -fcaller-sa ves -fcrossjumping -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-point er-checks -fdevirtualize -fexpensive-optimizations -fgcse -fgcse-lm -finlin e-small-functions -findirect-inlining -fipa-sra -foptimize-sibling-calls -f partial-inlining -fpeephole2 -fregmove -freorder-blocks -freorder-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec -fschedule-insns -f schedule-insns2 -fstrict-aliasing -fstrict-overflow -ftree-switch-conversio n -ftree-pre -ftree-vrp")
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -fauto-inc-dec -f
compare-elim -fcprop-registers -fdce -fdefer-pop -fdelayed-branch -fdse -fg
uess-branch-probability -fif-conversion2 -fif-conversion -fipa-pure-const -
fipa-reference -fipa-profile -fmerge-constants -fsplit-wide-types -ftree-bi
t-ccp -ftree-builtin-call-dce -ftree-ccp -ftree-ch -ftree-copyrename -ftree
-dce -ftree-dominator-opts -ftree-dse -ftree-forwprop -ftree-fre -ftree-phi
prop -ftree-sra -ftree-pta -ftree-ter -funit-at-a-time -fthread-jumps -fali
gn-functions -falign-jumps -falign-loops -falign-labels -fcaller-saves -fcr
ossjumping -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-pointer-check
s -fdevirtualize -fexpensive-optimizations -fgcse -fgcse-lm -finline-small-
functions -findirect-inlining -fipa-sra -foptimize-sibling-calls -fpartial-
inlining -fpeephole2 -fregmove -freorder-blocks -freorder-functions -frerun
-cse-after-loop -fsched-interblock -fsched-spec -fschedule-insns -fschedule
-insns2 -fstrict-aliasing -fstrict-overflow -ftree-switch-conversion -ftree
-pre -ftree-vrp")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -fauto-inc-de
c -fcompare-elim -fcprop-registers -fdce -fdefer-pop -fdelayed-branch -fdse
-fguess-branch-probability -fif-conversion2 -fif-conversion -fipa-pure-con
st -fipa-reference -fipa-profile -fmerge-constants -fsplit-wide-types -ftre
e-bit-ccp -ftree-builtin-call-dce -ftree-ccp -ftree-ch -ftree-copyrename -f
tree-dce -ftree-dominator-opts -ftree-dse -ftree-forwprop -ftree-fre -ftree
-phiprop -ftree-sra -ftree-pta -ftree-ter -funit-at-a-time -fthread-jumps -
falign-functions -falign-jumps -falign-loops -falign-labels -fcaller-saves
-fcrossjumping -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-pointer-c
hecks -fdevirtualize -fexpensive-optimizations -fgcse -fgcse-lm -finline-sm
all-functions -findirect-inlining -fipa-sra -foptimize-sibling-calls -fpart
ial-inlining -fpeephole2 -fregmove -freorder-blocks -freorder-functions -fr
erun-cse-after-loop -fsched-interblock -fsched-spec -fschedule-insns -fsche
dule-insns2 -fstrict-aliasing -fstrict-overflow -ftree-switch-conversion -f
tree-pre -ftree-vrp")
SET(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O0 -fauto-inc-dec -fcompare-elim -fcprop-registers -fdce -fdefer-pop -fdelaye d-branch -fdse -fguess-branch-probability -fif-conversion2 -fif-conversion -fipa-pure-const -fipa-reference -fipa-profile -fmerge-constants -fsplit-wi de-types -ftree-bit-ccp -ftree-builtin-call-dce -ftree-ccp -ftree-ch -ftree -copyrename -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-forwprop -ft ree-fre -ftree-phiprop -ftree-sra -ftree-pta -ftree-ter -funit-at-a-time -f thread-jumps -falign-functions -falign-jumps -falign-loops -falign-labels - fcaller-saves -fcrossjumping -fcse-follow-jumps -fcse-skip-blocks -fdelete- null-pointer-checks -fdevirtualize -fexpensive-optimizations -fgcse -fgcse- lm -finline-small-functions -findirect-inlining -fipa-sra -foptimize-siblin g-calls -fpartial-inlining -fpeephole2 -fregmove -freorder-blocks -freorder -functions -frerun-cse-after-loop -fsched-interblock -fsched-spec -fschedul e-insns -fschedule-insns2 -fstrict-aliasing -fstrict-overflow -ftree-switch -conversion -ftree-pre -ftree-vrp") SET(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O0 -fauto-inc-dec -fcompare-elim -fcprop-registers -fdce -fdefer-pop -fdelaye d-branch -fdse -fguess-branch-probability -fif-conversion2 -fif-conversion -fipa-pure-const -fipa-reference -fipa-profile -fmerge-constants -fsplit-wi de-types -ftree-bit-ccp -ftree-builtin-call-dce -ftree-ccp -ftree-ch -ftree -copyrename -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-forwprop -ft ree-fre -ftree-phiprop -ftree-sra -ftree-pta -ftree-ter -funit-at-a-time -f thread-jumps -falign-functions -falign-jumps -falign-loops -falign-labels - fcaller-saves -fcrossjumping -fcse-follow-jumps -fcse-skip-blocks -fdelete- null-pointer-checks -fdevirtualize -fexpensive-optimizations -fgcse -fgcse- lm -finline-small-functions -findirect-inlining -fipa-sra -foptimize-siblin g-calls -fpartial-inlining -fpeephole2 -fregmove -freorder-blocks -freorder -functions -frerun-cse-after-loop -fsched-interblock -fsched-spec -fschedul e-insns -fschedule-insns2 -fstrict-aliasing -fstrict-overflow -ftree-switch -conversion -ftree-pre -ftree-vrp")
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -O0 -fauto-inc-dec -fcompare-elim -fcprop-registers -fdce -fdefer-pop -fde layed-branch -fdse -fguess-branch-probability -fif-conversion2 -fif-convers ion -fipa-pure-const -fipa-reference -fipa-profile -fmerge-constants -fspli t-wide-types -ftree-bit-ccp -ftree-builtin-call-dce -ftree-ccp -ftree-ch -f tree-copyrename -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-forwprop -ftree-fre -ftree-phiprop -ftree-sra -ftree-pta -ftree-ter -funit-at-a-tim e -fthread-jumps -falign-functions -falign-jumps -falign-loops -falign-labe ls -fcaller-saves -fcrossjumping -fcse-follow-jumps -fcse-skip-blocks -fdel ete-null-pointer-checks -fdevirtualize -fexpensive-optimizations -fgcse -fg cse-lm -finline-small-functions -findirect-inlining -fipa-sra -foptimize-si bling-calls -fpartial-inlining -fpeephole2 -fregmove -freorder-blocks -freo rder-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec -fsch edule-insns -fschedule-insns2 -fstrict-aliasing -fstrict-overflow -ftree-sw itch-conversion -ftree-pre -ftree-vrp") SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -O0 -fauto-inc-dec -fcompare-elim -fcprop-registers -fdce -fdefer-pop -fde layed-branch -fdse -fguess-branch-probability -fif-conversion2 -fif-convers ion -fipa-pure-const -fipa-reference -fipa-profile -fmerge-constants -fspli t-wide-types -ftree-bit-ccp -ftree-builtin-call-dce -ftree-ccp -ftree-ch -f tree-copyrename -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-forwprop -ftree-fre -ftree-phiprop -ftree-sra -ftree-pta -ftree-ter -funit-at-a-tim e -fthread-jumps -falign-functions -falign-jumps -falign-loops -falign-labe ls -fcaller-saves -fcrossjumping -fcse-follow-jumps -fcse-skip-blocks -fdel ete-null-pointer-checks -fdevirtualize -fexpensive-optimizations -fgcse -fg cse-lm -finline-small-functions -findirect-inlining -fipa-sra -foptimize-si bling-calls -fpartial-inlining -fpeephole2 -fregmove -freorder-blocks -freo rder-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec -fsch edule-insns -fschedule-insns2 -fstrict-aliasing -fstrict-overflow -ftree-sw itch-conversion -ftree-pre -ftree-vrp")
ENDIF() ENDIF()
ENDIF() ENDIF()
ENDIF(WIN32) ENDIF(WIN32)
# Nothing's here right now # Nothing's here right now
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}") SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}") SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
SET(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO}") SET(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO}")
skipping to change at line 464 skipping to change at line 480
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMENT "making the macosx bundle." COMMENT "making the macosx bundle."
VERBATIM VERBATIM
) )
ENDIF() ENDIF()
########### Generate doxygen doc ############### ########### Generate doxygen doc ###############
CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/Doxyfile.cmake ${CMAKE_CURRENT_BINARY_ DIR}/Doxyfile @ONLY) CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/Doxyfile.cmake ${CMAKE_CURRENT_BINARY_ DIR}/Doxyfile @ONLY)
ADD_CUSTOM_TARGET(apidoc doxygen ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile WORKI NG_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Generate the doxygen docu mentation into the doc directory.") ADD_CUSTOM_TARGET(apidoc doxygen ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile WORKI NG_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Generate the doxygen docu mentation into the doc directory.")
##################### Generate translation copying script #################
#####
IF (WIN32)
STRING(REPLACE "/" "\\" PROJECT_SOURCE_DIR_WINPATH ${PROJECT_SOURCE_DIR})
STRING(REPLACE "/" "\\" PROJECT_BINARY_DIR_WINPATH ${PROJECT_BINARY_DIR})
CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/util/copy-translations.bat.cmake ${PR
OJECT_SOURCE_DIR}/util/copy-translations.bat @ONLY NEWLINE_STYLE WIN32)
ENDIF(WIN32)
########### 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/renderer ${CMAKE_SOURCE_DIR}/src/core/renderer
${CMAKE_SOURCE_DIR}/src/core/modules ${CMAKE_SOURCE_DIR}/src/core/modules
${CMAKE_SOURCE_DIR}/src/core/planetsephems ${CMAKE_SOURCE_DIR}/src/core/planetsephems
${CMAKE_SOURCE_DIR}/src/core/external ${CMAKE_SOURCE_DIR}/src/core/external
 End of changes. 20 change blocks. 
26 lines changed or deleted 80 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/