CMakeLists.txt   CMakeLists.txt 
CMAKE_MINIMUM_REQUIRED(VERSION 2.6) 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 "11") SET(STELLARIUM_MINOR "12")
SET(STELLARIUM_PATCH "4") SET(STELLARIUM_PATCH "0")
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 57 skipping to change at line 57
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_C_FLAGS "${CMAKE_C_FLAGS} -Woverloaded-virtual")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Woverloaded-virtual") 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})
skipping to change at line 114 skipping to change at line 113
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
# resolve bug for FreeBSD/amd64 and NVIDIA proprietary drivers
IF (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
# Use -pthread compilation option to properly link to threading library
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
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_C_FLAGS} -fno-common -Wall -Wextra")
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/")
skipping to change at line 194 skipping to change at line 200
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")
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_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 n should be created.") SET(USE_PLUGIN_SATELLITES 1 CACHE BOOL "Define whether the Satellites plugi n should be created.")
SET(USE_PLUGIN_TELESCOPECONTROL 1 CACHE BOOL "Define whether the TelescopeC ontrol plug-in 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_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_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_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_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_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_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_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_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_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 246 skipping to change at line 254
SET(QT_USE_QTSQL TRUE) # For LogBook we also need SQL module SET(QT_USE_QTSQL TRUE) # For LogBook we also need SQL module
ENDIF() ENDIF()
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.2") SET(QT_MIN_VERSION "4.8.0")
FIND_PACKAGE(Qt4 REQUIRED) FIND_PACKAGE(Qt4 REQUIRED)
# Tell CMake to run moc when necessary:
set(CMAKE_AUTOMOC ON)
# As moc files are generated in the binary dir, tell CMake
# to always look for includes there:
set(CMAKE_INCLUDE_CURRENT_DIR ON)
SET(QT_USE_QTOPENGL TRUE) SET(QT_USE_QTOPENGL TRUE)
IF(ENABLE_SCRIPTING) IF(ENABLE_SCRIPTING)
SET(QT_USE_QTSCRIPT TRUE) SET(QT_USE_QTSCRIPT TRUE)
ENDIF() ENDIF()
SET(QT_USE_QTNETWORK TRUE) SET(QT_USE_QTNETWORK 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()
skipping to change at line 358 skipping to change at line 372
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}\";")
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)
ENDIF(WIN32) ENDIF(WIN32)
########## Release build tweaks ###########
#-O1 and -O2 break build (cause crash at startup) on Windows.
#
# 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.
#
# Yes, it's ugly.
#
# (This happens with MinGW port of GCC 4.6/4.7 -
# maybe it won't happen with newer versions so we only use this for 4.6/4.
7)
IF(WIN32)
IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
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_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_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)
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_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")
ENDIF()
ENDIF()
ENDIF(WIN32)
# Nothing's here right now
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
SET(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO}")
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
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)
skipping to change at line 403 skipping to change at line 450
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "${CPACK_PACKAGE_VENDOR} <stellarium- pubdevel@lists.sourceforge.net>") SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "${CPACK_PACKAGE_VENDOR} <stellarium- pubdevel@lists.sourceforge.net>")
SET(CPACK_DEBIAN_PACKAGE_SECTION "science") SET(CPACK_DEBIAN_PACKAGE_SECTION "science")
SET(CPACK_DEBIAN_PACKAGE_VERSION "${VERSION}+deb1") SET(CPACK_DEBIAN_PACKAGE_VERSION "${VERSION}+deb1")
SET(CPACK_DEBIAN_PACKAGE_HOMEPAGE "${CPACK_RPM_PACKAGE_URL}") SET(CPACK_DEBIAN_PACKAGE_HOMEPAGE "${CPACK_RPM_PACKAGE_URL}")
SET(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) SET(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
INCLUDE(CPack) INCLUDE(CPack)
ENDIF() ENDIF()
########### Macosx Bundling ############### ########### Macosx Bundling ###############
IF(APPLE) IF(APPLE)
ADD_CUSTOM_TARGET(macosx_bundle bash util/macosx_bundle.sh ${CMAKE_INSTALL_ ADD_CUSTOM_TARGET(
PREFIX} ${PROJECT_SOURCE_DIR} DEPENDS install WORKING_DIRECTORY ${PROJECT_S macosx_bundle
OURCE_DIR} COMMENT "making the macosx bundle." VERBATIM) bash util/macosx_bundle.sh ${CMAKE_INSTALL_PREFIX} ${PROJECT_SOURCE_DIR}
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Stellarium.app
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMENT "making the macosx bundle."
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.")
########### 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/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
${CMAKE_SOURCE_DIR}/src/core/external/kfilter ${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/
${CMAKE_SOURCE_DIR}/src/core/external/glues_stel/source/libtess ${CMAKE_SOURCE_DIR}/src/core/external/glues_stel/source/libtess
${CMAKE_SOURCE_DIR}/src/gui ${CMAKE_SOURCE_DIR}/src/gui
${CMAKE_SOURCE_DIR}/src/scripting ${CMAKE_SOURCE_DIR}/src/scripting
${INTL_INCLUDE_DIR} ${INTL_INCLUDE_DIR}
${CMAKE_BINARY_DIR}/src ${CMAKE_BINARY_DIR}/src
 End of changes. 11 change blocks. 
8 lines changed or deleted 167 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/