CMakeLists.txt   CMakeLists.txt 
INCLUDE_DIRECTORIES( ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/src ${CMAKE_SO SET(glues_lib_SRCS
URCE_DIR}/src/core ${CMAKE_SOURCE_DIR}/src/gui ${CMAKE_SOURCE_DIR}/src/modu external/glues_stel/source/glues_error.c
les ${CMAKE_SOURCE_DIR}/src/planetsephems ${CMAKE_SOURCE_DIR}/src/external external/glues_stel/source/glues_error.h
${CMAKE_SOURCE_DIR}/src/scripting ${CMAKE_SOURCE_DIR}/src/external/kfilter external/glues_stel/source/glues.h
${FreeType2_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR} ${CURL_INCLUDE_DIRS} ${JPEG external/glues_stel/source/glues_mipmap.c
_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${SDL_INCLUDE_DIR} ${ICONV_INCLUDE_DIR} external/glues_stel/source/glues_mipmap.h
${INTL_INCLUDE_DIR} ${SDLMIXER_INCLUDE_DIR} ${QT_INCLUDE_DIR}/QtScript ${Q external/glues_stel/source/libtess/dict.h
T_QTSCRIPT_INCLUDE_DIR} ${CMAKE_BINARY_DIR}/src) external/glues_stel/source/libtess/dict.c
external/glues_stel/source/libtess/dict-list.h
external/glues_stel/source/libtess/geom.c
external/glues_stel/source/libtess/geom.h
external/glues_stel/source/libtess/memalloc.c
external/glues_stel/source/libtess/memalloc.h
external/glues_stel/source/libtess/mesh.c
external/glues_stel/source/libtess/mesh.h
external/glues_stel/source/libtess/normal.c
external/glues_stel/source/libtess/normal.h
external/glues_stel/source/libtess/priorityq.c
external/glues_stel/source/libtess/priorityq.h
external/glues_stel/source/libtess/priorityq-heap.h
external/glues_stel/source/libtess/priorityq-heap.i
external/glues_stel/source/libtess/priorityq-sort.h
external/glues_stel/source/libtess/render.c
external/glues_stel/source/libtess/render.h
external/glues_stel/source/libtess/sweep.c
external/glues_stel/source/libtess/sweep.h
external/glues_stel/source/libtess/tess.c
external/glues_stel/source/libtess/tess.h
external/glues_stel/source/libtess/tessmono.c
external/glues_stel/source/libtess/tessmono.h
)
########### next target ############### IF (OPENGL_MODE STREQUAL "Desktop")
SET(gl_lib_SRCS external/GLee.c external/GLee.h)
ENDIF()
IF(OPENGL_MODE STREQUAL "ES2")
SET(gl_lib_SRCS external/GLee.h)
ENDIF()
SET(stellarium_lib_SRCS SET(stellarium_lib_SRCS
core/StelAudioMgr.hpp core/StelAudioMgr.hpp
core/StelAudioMgr.cpp core/StelAudioMgr.cpp
core/StelDownloadMgr.hpp
core/StelDownloadMgr.cpp
core/StelGeodesicGrid.cpp core/StelGeodesicGrid.cpp
core/StelGeodesicGrid.hpp core/StelGeodesicGrid.hpp
core/StelLoadingBar.cpp core/StelLoadingBar.cpp
core/StelLoadingBar.hpp core/StelLoadingBar.hpp
core/StelMovementMgr.cpp core/StelMovementMgr.cpp
core/StelMovementMgr.hpp core/StelMovementMgr.hpp
core/StelNavigator.cpp core/StelNavigator.cpp
core/StelNavigator.hpp core/StelNavigator.hpp
core/StelObserver.cpp core/StelObserver.cpp
core/StelObserver.hpp core/StelObserver.hpp
core/StelLocation.hpp core/StelLocation.hpp
core/StelLocation.cpp core/StelLocation.cpp
core/StelLocationMgr.hpp core/StelLocationMgr.hpp
core/StelLocationMgr.cpp core/StelLocationMgr.cpp
core/StelProjector.cpp core/StelProjector.cpp
core/StelProjector.hpp core/StelProjector.hpp
core/StelProjectorClasses.cpp core/StelProjectorClasses.cpp
core/StelProjectorClasses.hpp core/StelProjectorClasses.hpp
core/StelProjectorType.hpp core/StelProjectorType.hpp
core/StelFont.cpp
core/StelFont.hpp
core/StelSkyDrawer.cpp core/StelSkyDrawer.cpp
core/StelSkyDrawer.hpp core/StelSkyDrawer.hpp
core/StelPainter.hpp core/StelPainter.hpp
core/StelPainter.cpp core/StelPainter.cpp
core/MultiLevelJsonBase.hpp core/MultiLevelJsonBase.hpp
core/MultiLevelJsonBase.cpp core/MultiLevelJsonBase.cpp
core/StelSkyImageTile.hpp core/StelSkyImageTile.hpp
core/StelSkyImageTile.cpp core/StelSkyImageTile.cpp
core/StelSkyPolygon.hpp core/StelSkyPolygon.hpp
core/StelSkyPolygon.cpp core/StelSkyPolygon.cpp
core/SphericMirrorCalculator.cpp core/SphericMirrorCalculator.cpp
core/SphericMirrorCalculator.hpp core/SphericMirrorCalculator.hpp
core/StelApp.cpp core/StelApp.cpp
core/StelApp.hpp core/StelApp.hpp
core/StelCore.cpp core/StelCore.cpp
core/StelCore.hpp core/StelCore.hpp
core/StelFileMgr.cpp core/StelFileMgr.cpp
core/StelFileMgr.hpp core/StelFileMgr.hpp
core/StelFontMgr.cpp core/StelAppGraphicsWidget.cpp
core/StelFontMgr.hpp core/StelAppGraphicsWidget.hpp
core/StelAppGraphicsScene.cpp
core/StelAppGraphicsScene.hpp
core/StelLocaleMgr.cpp core/StelLocaleMgr.cpp
core/StelLocaleMgr.hpp core/StelLocaleMgr.hpp
core/StelModule.cpp core/StelModule.cpp
core/StelModule.hpp core/StelModule.hpp
core/StelModuleMgr.cpp core/StelModuleMgr.cpp
core/StelModuleMgr.hpp core/StelModuleMgr.hpp
core/StelObject.cpp core/StelObject.cpp
core/StelObject.hpp core/StelObject.hpp
core/StelObjectMgr.cpp core/StelObjectMgr.cpp
core/StelObjectMgr.hpp core/StelObjectMgr.hpp
skipping to change at line 77 skipping to change at line 106
core/StelPluginInterface.hpp core/StelPluginInterface.hpp
core/StelSkyCultureMgr.cpp core/StelSkyCultureMgr.cpp
core/StelSkyCultureMgr.hpp core/StelSkyCultureMgr.hpp
core/StelTextureMgr.cpp core/StelTextureMgr.cpp
core/StelTextureMgr.hpp core/StelTextureMgr.hpp
core/StelTexture.cpp core/StelTexture.cpp
core/StelTexture.hpp core/StelTexture.hpp
core/StelTextureTypes.hpp core/StelTextureTypes.hpp
core/StelToneReproducer.cpp core/StelToneReproducer.cpp
core/StelToneReproducer.hpp core/StelToneReproducer.hpp
core/StelViewportDistorter.cpp
core/StelViewportDistorter.hpp
core/StelStyle.hpp core/StelStyle.hpp
core/StelSkyImageMgr.cpp core/StelSkyLayerMgr.cpp
core/StelSkyImageMgr.hpp core/StelSkyLayerMgr.hpp
core/StelSkyLayer.hpp
core/StelSkyLayer.cpp
core/StelFader.hpp core/StelFader.hpp
core/StelGrid.hpp
core/StelGridObject.hpp
core/StelSphereGeometry.cpp core/StelSphereGeometry.cpp
core/StelSphereGeometry.hpp core/StelSphereGeometry.hpp
core/OctahedronPolygon.cpp
core/OctahedronPolygon.hpp
core/StelIniParser.cpp core/StelIniParser.cpp
core/StelIniParser.hpp core/StelIniParser.hpp
core/StelUtils.cpp core/StelUtils.cpp
core/StelUtils.hpp core/StelUtils.hpp
core/StelTranslator.cpp core/StelTranslator.cpp
core/StelTranslator.hpp core/StelTranslator.hpp
core/StelTreeGrid.cpp
core/StelTreeGrid.hpp
core/VecMath.hpp core/VecMath.hpp
core/StelJsonParser.hpp core/StelJsonParser.hpp
core/StelJsonParser.cpp core/StelJsonParser.cpp
core/SimbadSearcher.hpp core/SimbadSearcher.hpp
core/SimbadSearcher.cpp core/SimbadSearcher.cpp
core/StelSphericalIndex.hpp
core/StelSphericalIndex.cpp
core/StelVertexArray.hpp
core/StelVertexArray.cpp
core/StelGuiBase.hpp
core/StelGuiBase.cpp
core/StelViewportEffect.hpp
core/StelViewportEffect.cpp
external/bytes.h ${gl_lib_SRCS}
external/callback_helpers.hpp
external/callbacks.hpp
external/fixx11h.h external/fixx11h.h
external/gettext.h external/gettext.h
external/GLee.c
external/GLee.h
external/typeface.cpp
external/typeface.h
external/kfilter/kfilterdev.h external/kfilter/kfilterdev.h
external/kfilter/kfilterdev.cpp external/kfilter/kfilterdev.cpp
external/kfilter/kfilterbase.h external/kfilter/kfilterbase.h
external/kfilter/kfilterbase.cpp external/kfilter/kfilterbase.cpp
external/kfilter/kgzipfilter.h external/kfilter/kgzipfilter.h
external/kfilter/kgzipfilter.cpp external/kfilter/kgzipfilter.cpp
external/kfilter/kzip.h external/kfilter/kzip.h
external/kfilter/kzip.cpp external/kfilter/kzip.cpp
external/kfilter/klimitediodevice.h external/kfilter/klimitediodevice.h
external/kfilter/klimitediodevice.cpp external/kfilter/klimitediodevice.cpp
external/kfilter/karchive.h external/kfilter/karchive.h
external/kfilter/karchive.cpp external/kfilter/karchive.cpp
${glues_lib_SRCS}
planetsephems/calc_interpolated_elements.c planetsephems/calc_interpolated_elements.c
planetsephems/calc_interpolated_elements.h planetsephems/calc_interpolated_elements.h
planetsephems/elliptic_to_rectangular.c planetsephems/elliptic_to_rectangular.c
planetsephems/elliptic_to_rectangular.h planetsephems/elliptic_to_rectangular.h
planetsephems/elp82b.c planetsephems/elp82b.c
planetsephems/elp82b.h planetsephems/elp82b.h
planetsephems/gust86.c planetsephems/gust86.c
planetsephems/gust86.h planetsephems/gust86.h
planetsephems/l1.c planetsephems/l1.c
planetsephems/l1.h planetsephems/l1.h
skipping to change at line 195 skipping to change at line 227
modules/Star.cpp modules/Star.cpp
modules/Star.hpp modules/Star.hpp
modules/StarMgr.cpp modules/StarMgr.cpp
modules/StarMgr.hpp modules/StarMgr.hpp
modules/StarWrapper.cpp modules/StarWrapper.cpp
modules/StarWrapper.hpp modules/StarWrapper.hpp
modules/Telescope.cpp modules/Telescope.cpp
modules/Telescope.hpp modules/Telescope.hpp
modules/TelescopeMgr.cpp modules/TelescopeMgr.cpp
modules/TelescopeMgr.hpp modules/TelescopeMgr.hpp
# modules/TextUI.cpp
# modules/TextUI.hpp
modules/ZoneArray.cpp modules/ZoneArray.cpp
modules/ZoneArray.hpp modules/ZoneArray.hpp
modules/ZoneData.hpp modules/ZoneData.hpp
gui/StelGui.hpp
gui/StelGui.cpp
gui/StelGuiItems.hpp
gui/StelGuiItems.cpp
gui/HelpDialog.hpp
gui/HelpDialog.cpp
gui/Dialog.hpp
gui/Dialog.cpp
gui/MapLabel.hpp
gui/MapLabel.cpp
gui/AngleSpinBox.hpp
gui/AngleSpinBox.cpp
gui/LocationDialog.hpp
gui/LocationDialog.cpp
gui/DateTimeDialog.hpp
gui/DateTimeDialog.cpp
gui/ViewDialog.hpp
gui/ViewDialog.cpp
gui/SearchDialog.hpp
gui/SearchDialog.cpp
gui/ConfigurationDialog.hpp
gui/ConfigurationDialog.cpp
gui/DownloadPopup.hpp
gui/DownloadPopup.cpp
gui/StelDialog.hpp
gui/StelDialog.cpp
scripting/StelScriptPreProcessor.cpp
scripting/StelScriptMgr.cpp scripting/StelScriptMgr.cpp
scripting/StratoscriptPreprocessor.cpp
scripting/StelScriptMgr.hpp scripting/StelScriptMgr.hpp
scripting/ScriptSleeper.cpp
scripting/ScriptSleeper.hpp
scripting/StelMainScriptAPI.cpp
scripting/StelMainScriptAPI.hpp
scripting/StelMainScriptAPIProxy.cpp
scripting/StelMainScriptAPIProxy.hpp
StelMainGraphicsView.hpp StelMainGraphicsView.hpp
StelMainGraphicsView.cpp StelMainGraphicsView.cpp
StelMainWindow.hpp StelMainWindow.hpp
StelMainWindow.cpp StelMainWindow.cpp
StelLogger.hpp
StelLogger.cpp
CLIProcessor.hpp
CLIProcessor.cpp
translations.h translations.h
) )
IF(WIN32) IF(WIN32)
SET(stellarium_lib_SRCS ${stellarium_lib_SRCS} SET(stellarium_lib_SRCS ${stellarium_lib_SRCS}
external/kdewin32/basetyps.h external/kdewin32/basetyps.h
external/kdewin32/byteswap.h external/kdewin32/byteswap.h
external/kdewin32/comcat.h external/kdewin32/comcat.h
external/kdewin32/dirent.h external/kdewin32/dirent.h
external/kdewin32/docobj.h external/kdewin32/docobj.h
skipping to change at line 319 skipping to change at line 332
external/kdewin32/strptime.c external/kdewin32/strptime.c
external/kdewin32/syslog.c external/kdewin32/syslog.c
external/kdewin32/time.c external/kdewin32/time.c
external/kdewin32/uname.c external/kdewin32/uname.c
external/kdewin32/unistd.c external/kdewin32/unistd.c
) )
ENDIF(WIN32) ENDIF(WIN32)
IF(APPLE) IF(APPLE)
SET(stellarium_lib_SRCS SET(stellarium_lib_SRCS
${stellarium_lib_SRCS} ${stellarium_lib_SRCS}
core/StelMacosxDirs.cpp core/StelMacosxDirs.cpp
core/StelMacosxDirs.hpp) core/StelMacosxDirs.hpp)
ENDIF(APPLE) ENDIF(APPLE)
SET(stellarium_exe_SRCS SET(stellarium_exe_SRCS
main.cpp main.cpp
) )
################# compiles .ui files ############
SET(stellarium_UIS
gui/locationDialogGui.ui
gui/helpDialogGui.ui
gui/dateTimeDialogGui.ui
gui/viewDialog.ui
gui/searchDialogGui.ui
gui/configurationDialog.ui
gui/downloadPopup.ui
)
QT4_WRAP_UI(stellarium_UIS_H ${stellarium_UIS})
################# compiles resources files ############ ################# compiles resources files ############
SET(stellarium_RES SET(stellarium_RES
${CMAKE_SOURCE_DIR}/data/mainRes.qrc) ${CMAKE_SOURCE_DIR}/data/mainRes.qrc)
QT4_ADD_RESOURCES(stellarium_RES_CXX ${stellarium_RES}) QT4_ADD_RESOURCES(stellarium_RES_CXX ${stellarium_RES})
################# compiles moc files ############ ################# compiles moc files ############
# Add here all the files which require moc compilation # Add here all the files which require moc compilation
# that is, all the headers with SIGNAL/SLOTS/PLUGIN_INTERFACE etc.. # that is, all the headers with SIGNAL/SLOTS/PLUGIN_INTERFACE etc..
SET(stellarium_MOC_HDRS SET(stellarium_MOC_HDRS
core/StelAudioMgr.hpp core/StelAudioMgr.hpp
core/StelDownloadMgr.hpp
core/StelModuleMgr.hpp core/StelModuleMgr.hpp
core/StelObserver.hpp core/StelObserver.hpp
core/StelApp.hpp core/StelApp.hpp
core/StelNavigator.hpp core/StelNavigator.hpp
core/StelLocationMgr.hpp core/StelLocationMgr.hpp
core/StelCore.hpp core/StelCore.hpp
core/StelAppGraphicsScene.hpp core/StelAppGraphicsWidget.hpp
core/StelTexture.hpp core/StelTexture.hpp
core/StelMovementMgr.hpp core/StelMovementMgr.hpp
core/MultiLevelJsonBase.hpp core/MultiLevelJsonBase.hpp
core/StelSkyImageTile.hpp core/StelSkyImageTile.hpp
core/StelSkyPolygon.hpp core/StelSkyPolygon.hpp
core/StelSkyDrawer.hpp core/StelSkyDrawer.hpp
core/StelSkyImageMgr.hpp core/StelSkyLayerMgr.hpp
core/StelSkyLayer.hpp
core/StelSkyCultureMgr.hpp
core/SimbadSearcher.hpp core/SimbadSearcher.hpp
modules/ConstellationMgr.hpp modules/ConstellationMgr.hpp
modules/GridLinesMgr.hpp modules/GridLinesMgr.hpp
modules/LabelMgr.hpp modules/LabelMgr.hpp
modules/LandscapeMgr.hpp modules/LandscapeMgr.hpp
modules/MeteorMgr.hpp modules/MeteorMgr.hpp
modules/MilkyWay.hpp modules/MilkyWay.hpp
modules/NebulaMgr.hpp modules/NebulaMgr.hpp
modules/ScreenImageMgr.hpp modules/ScreenImageMgr.hpp
modules/SolarSystem.hpp modules/SolarSystem.hpp
modules/StarMgr.hpp modules/StarMgr.hpp
modules/Telescope.hpp
modules/TelescopeMgr.hpp modules/TelescopeMgr.hpp
gui/StelGui.hpp
gui/StelGuiItems.hpp
gui/HelpDialog.hpp
gui/Dialog.hpp
gui/MapLabel.hpp
gui/AngleSpinBox.hpp
gui/LocationDialog.hpp
gui/DateTimeDialog.hpp
gui/ViewDialog.hpp
gui/SearchDialog.hpp
gui/ConfigurationDialog.hpp
gui/DownloadPopup.hpp
gui/StelDialog.hpp
scripting/StelScriptMgr.hpp scripting/StelScriptMgr.hpp
scripting/StelMainScriptAPI.hpp
scripting/StelMainScriptAPIProxy.hpp
StelMainGraphicsView.hpp StelMainGraphicsView.hpp
StelMainWindow.hpp StelMainWindow.hpp
) )
# After this call, stellarium_MOC_SRCS = moc_stellarium.cxx # After this call, stellarium_MOC_SRCS = moc_stellarium.cxx
QT4_WRAP_CPP(stellarium_MOC_SRCS ${stellarium_MOC_HDRS}) QT4_WRAP_CPP(stellarium_MOC_SRCS ${stellarium_MOC_HDRS})
# Dummy target depending on ${stellarium_UIS_H} to trigger ui compilations ###########################################################################
ADD_CUSTOM_TARGET(GenerateUiHeaders ALL DEPENDS ${stellarium_UIS_H}) ##################
############################# Standard GUI plugin compilation #############
##################
###########################################################################
##################
IF (GUI_MODE STREQUAL "Standard")
SET(stellarium_gui_SRCS
gui/StelGui.hpp
gui/StelGui.cpp
gui/SkyGui.hpp
gui/SkyGui.cpp
gui/StelGuiItems.hpp
gui/StelGuiItems.cpp
gui/HelpDialog.hpp
gui/HelpDialog.cpp
gui/Dialog.hpp
gui/Dialog.cpp
gui/MapLabel.hpp
gui/MapLabel.cpp
gui/AngleSpinBox.hpp
gui/AngleSpinBox.cpp
gui/LocationDialog.hpp
gui/LocationDialog.cpp
gui/DateTimeDialog.hpp
gui/DateTimeDialog.cpp
gui/ViewDialog.hpp
gui/ViewDialog.cpp
gui/SearchDialog.hpp
gui/SearchDialog.cpp
gui/ConfigurationDialog.hpp
gui/ConfigurationDialog.cpp
gui/StelDialog.hpp
gui/StelDialog.cpp)
################# compiles GUI moc files ############
SET(stellarium_gui_MOC_HDRS
gui/StelGui.hpp
gui/SkyGui.hpp
gui/StelGuiItems.hpp
gui/HelpDialog.hpp
gui/Dialog.hpp
gui/MapLabel.hpp
gui/AngleSpinBox.hpp
gui/LocationDialog.hpp
gui/DateTimeDialog.hpp
gui/ViewDialog.hpp
gui/SearchDialog.hpp
gui/ConfigurationDialog.hpp
gui/StelDialog.hpp)
################# compiles .ui files ############
SET(stellarium_UIS
gui/locationDialogGui.ui
gui/helpDialogGui.ui
gui/dateTimeDialogGui.ui
gui/viewDialog.ui
gui/searchDialogGui.ui
gui/configurationDialog.ui)
IF(ENABLE_SCRIPT_CONSOLE)
SET(stellarium_gui_SRCS ${stellarium_gui_SRCS}
gui/ScriptConsole.hpp
gui/ScriptConsole.cpp
gui/StelScriptSyntaxHighlighter.hpp
gui/StelScriptSyntaxHighlighter.cpp)
SET(stellarium_gui_MOC_HDRS ${stellarium_gui_MOC_HDRS}
gui/ScriptConsole.hpp
gui/StelScriptSyntaxHighlighter.hpp)
SET(stellarium_UIS ${stellarium_UIS}
gui/scriptConsole.ui)
ENDIF(ENABLE_SCRIPT_CONSOLE)
QT4_WRAP_UI(stellarium_UIS_H ${stellarium_UIS})
# After this call, stellarium_gui_MOC_SRCS = moc_stellarium_gui.cxx
QT4_WRAP_CPP(stellarium_gui_MOC_SRCS ${stellarium_gui_MOC_HDRS})
SET(extLinkerOption ${QT_LIBRARIES} ${QT_QTSCRIPT_LIBRARY} ${OPENGL_
LIBRARIES} ${ICONV_LIBRARIES} ${INTL_LIBRARIES} )
# Compile the static library
ADD_LIBRARY(StelGuiLib STATIC ${stellarium_gui_SRCS} ${stellarium_gu
i_MOC_SRCS} ${stellarium_UIS_H})
TARGET_LINK_LIBRARIES(StelGuiLib ${StelMain} ${extLinkerOption})
SET_TARGET_PROPERTIES(StelGuiLib PROPERTIES COMPILE_FLAGS "-fPIC -DQ
T_STATICPLUGIN")
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} ${CMAKE_BINARY_DIR}/src/${CMAKE_CFG_INTDIR}/libStelGuiLib.a)
ENDIF()
###########################################################################
##################
############################ Standard NO GUI plugin compilation ###########
##################
###########################################################################
##################
IF (GUI_MODE STREQUAL "None")
SET(stellarium_nogui_SRCS
noGui/StelNoGui.hpp
noGui/StelNoGui.cpp)
SET(stellarium_nogui_MOC_HDRS
noGui/StelNoGui.hpp)
QT4_WRAP_CPP(stellarium_nogui_MOC_SRCS ${stellarium_nogui_MOC_HDRS})
ADD_LIBRARY(StelNoGuiLib STATIC ${stellarium_nogui_SRCS} ${stellariu
m_nogui_MOC_SRCS})
TARGET_LINK_LIBRARIES(StelNoGuiLib ${extLinkerOption})
SET_TARGET_PROPERTIES(StelNoGuiLib PROPERTIES COMPILE_FLAGS "-fPIC -
DQT_STATICPLUGIN")
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} ${CMAKE_BINARY_DIR}/src/libStelNoGuiLib.a)
ENDIF()
###########################################################################
##################
############################# External GUI plugin compilation #############
##################
###########################################################################
##################
IF (GUI_MODE STREQUAL "External")
SET(EXTERNAL_GUI_SRC_PATH "../../MyGui/" CACHE PATH "The location of
the plugin main directory i.e. the one containing the top level CMakeLists
.txt")
ADD_SUBDIRECTORY( ${EXTERNAL_GUI_SRC_PATH} externalGui )
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} ${CMAKE_BINARY_DIR}/src/externalGui/src/libExternalGui.a)
SET(EXTERNAL_GUI_PLUGIN_EXTRALIBS CACHE STRING "Additionnal link opt
ions needed for the GUI plugin")
SET(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} ${EXTERNAL_GUI_
PLUGIN_EXTRALIBS})
ENDIF()
###########################################################################
####################
################## Static plugins need to be known by the file main.cpp at
compilation time
################## so add the definitions to the compilation.
################## Also add the full path to the .a libraries at compilatio
n time.
IF (BUILD_STATIC_PLUGINS)
IF (USE_PLUGIN_HELLOSTELMODULE)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/HelloStelModule/src/${CMAKE_CFG_INT
DIR}/libHelloStelModule.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_HELLOSTELMODULE)
ENDIF()
IF (USE_PLUGIN_ANGLEMEASURE)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/AngleMeasure/src/${CMAKE_CFG_INTDIR
}/libAngleMeasure.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_ANGLEMEASURE)
ENDIF()
IF (USE_PLUGIN_COMPASSMARKS)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/CompassMarks/src/${CMAKE_CFG_INTDIR
}/libCompassMarks.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_COMPASSMARKS)
ENDIF()
IF (USE_PLUGIN_SATELLITES)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Satellites/src/${CMAKE_CFG_INTDIR}/
libSatellites.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_SATELLITES)
ENDIF()
IF (USE_PLUGIN_TELESCOPECONTROL)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/TelescopeControl/src/${CMAKE_CFG_IN
TDIR}/libTelescopeControl.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_TELESCOPECONTROL)
ENDIF()
IF (USE_PLUGIN_LOGBOOK)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/LogBook/src/${CMAKE_CFG_INTDIR}/lib
LogBook.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_LOGBOOK)
SET(QT_USE_QTSQL TRUE)
ENDIF()
IF (USE_PLUGIN_OCULARS)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Oculars/src/${CMAKE_CFG_INTDIR}/lib
Oculars.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_OCULARS)
SET(QT_USE_QTSQL TRUE)
ENDIF()
IF (USE_PLUGIN_TEXTUSERINTERFACE)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/TextUserInterface/src/${CMAKE_CFG_I
NTDIR}/libTextUserInterface.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_TEXTUSERINTERFACE)
ENDIF()
IF (USE_PLUGIN_SVMT)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} ${CMAKE_BINARY_DIR}/plugins/svmt/src/${CMAKE_CFG_INTDIR}/libSVMT
.a ${TOKYOC_LIBRARIES})
IF(APPLE)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGIN
S_LIBRARIES} "-framework QtDeclarative")
ELSE()
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGIN
S_LIBRARIES} "/usr/local/Trolltech/Qt-4.6.0/lib/libQtDeclarative.so")
ENDIF()
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_SVMT)
ENDIF()
IF (USE_PLUGIN_VIRGO)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} ${CMAKE_BINARY_DIR}/plugins/VirGO/src/${CMAKE_CFG_INTDIR}/libVir
GO.a ${CFITSIO_LIBRARIES})
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_VIRGO)
ENDIF()
ENDIF()
###########################################################################
##################
################################ Build main program #######################
##################
###########################################################################
##################
SET(extLinkerOption ${QT_LIBRARIES} ${QT_QTSCRIPT_LIBRARY} ${FreeType2_LIBR ARIES} ${JPEG_LIBRARIES} ${PNG_LIBRARIES} ${OPENGL_LIBRARIES} ${SDL_LIBRARY } ${ICONV_LIBRARIES} ${INTL_LIBRARIES} ${SDLMIXER_LIBRARY}) SET(extLinkerOption ${QT_LIBRARIES} ${QT_QTSCRIPT_LIBRARY} ${OPENGL_LIBRARI ES} ${ICONV_LIBRARIES} ${INTL_LIBRARIES} ${ZLIB_LIBRARIES})
IF(GENERATE_STELMAINLIB) IF(GENERATE_STELMAINLIB)
ADD_LIBRARY(stelMain SHARED ${stellarium_lib_SRCS} ${stellarium_MOC_SRCS} ${stellarium_RES_CXX}) ADD_LIBRARY(stelMain SHARED ${stellarium_lib_SRCS} ${stellarium_MOC_SRCS} ${stellarium_RES_CXX})
TARGET_LINK_LIBRARIES(stelMain ${extLinkerOption}) TARGET_LINK_LIBRARIES(stelMain ${extLinkerOption} ${STELLARIUM_STATIC_PLUG INS_LIBRARIES})
INSTALL(TARGETS stelMain DESTINATION lib) INSTALL(TARGETS stelMain DESTINATION lib)
ADD_EXECUTABLE(stellarium ${stellarium_exe_SRCS}) ADD_EXECUTABLE(stellarium ${stellarium_exe_SRCS})
TARGET_LINK_LIBRARIES(stellarium stelMain ${extLinkerOption}) #stelMain should be after the plug-ins, otherwise the build crashes
TARGET_LINK_LIBRARIES(stellarium ${STELLARIUM_STATIC_PLUGINS_LIBRARIES} st
elMain ${extLinkerOption})
ELSE() ELSE()
ADD_EXECUTABLE(stellarium ${stellarium_lib_SRCS} ${stellarium_MOC_SRCS} ${ stellarium_RES_CXX} ${stellarium_exe_SRCS}) ADD_EXECUTABLE(stellarium ${stellarium_lib_SRCS} ${stellarium_MOC_SRCS} ${ stellarium_RES_CXX} ${stellarium_exe_SRCS})
TARGET_LINK_LIBRARIES(stellarium ${extLinkerOption}) TARGET_LINK_LIBRARIES(stellarium ${extLinkerOption} ${STELLARIUM_STATIC_PL UGINS_LIBRARIES})
IF(APPLE) IF(APPLE)
SET_TARGET_PROPERTIES(stellarium PROPERTIES LINK_FLAGS " -dylib_file /Sys # SET_TARGET_PROPERTIES(stellarium PROPERTIES LINK_FLAGS " -dylib_file /Sys
tem/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/S tem/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/S
ystem/Library/Frameworks/works/OpenGL.framework/Versions/A/Libraries/libGL. ystem/Library/Frameworks/works/OpenGL.framework/Versions/A/Libraries/libGL.
dylib -framework Cocoa") dylib -framework Cocoa -framework QtDeclarative")
SET_TARGET_PROPERTIES(stellarium PROPERTIES LINK_FLAGS " -framework Cocoa -
framework OpenGL")
ENDIF() ENDIF()
ENDIF() ENDIF()
ADD_DEPENDENCIES(stellarium AllStaticPlugins)
INSTALL(TARGETS stellarium DESTINATION bin) INSTALL(TARGETS stellarium DESTINATION bin)
## tests ###########################################################################
##################
################################## Build unit tests #######################
##################
###########################################################################
##################
SET(extLinkerOptionTest ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${QT_Q
TTEST_LIBRARY} ${QT_QTGUI_LIBRARY} ${ICONV_LIBRARIES} ${INTL_LIBRARIES} ${Z
LIB_LIBRARIES})
SET(tests_testdates_SRCS # Custom target used to build all tests at once
ADD_CUSTOM_TARGET(buildTests)
SET(tests_testDates_SRCS
core/StelUtils.cpp core/StelUtils.cpp
core/StelUtils.hpp core/StelUtils.hpp
tests/testdates.cpp) tests/testDates.cpp)
ADD_EXECUTABLE(testdates ${tests_testdates_SRCS}) QT4_WRAP_CPP(testDates_MOC_SRCS tests/testDates.hpp)
TARGET_LINK_LIBRARIES(testdates ${extLinkerOption}) ADD_EXECUTABLE(testDates EXCLUDE_FROM_ALL ${tests_testDates_SRCS} ${testDat
ADD_TEST(test_testdates ${EXECUTABLE_OUTPUT_PATH}/testdates) es_MOC_SRCS})
TARGET_LINK_LIBRARIES(testDates ${extLinkerOptionTest})
ADD_DEPENDENCIES(buildTests testDates)
SET(tests_testStelFileMgr_SRCS
core/StelFileMgr.cpp
core/StelFileMgr.hpp
tests/testStelFileMgr.cpp)
QT4_WRAP_CPP(testStelFileMgr_MOC_SRCS tests/testStelFileMgr.hpp)
ADD_EXECUTABLE(testStelFileMgr EXCLUDE_FROM_ALL ${tests_testStelFileMgr_SRC
S} ${testStelFileMgr_MOC_SRCS})
TARGET_LINK_LIBRARIES(testStelFileMgr ${extLinkerOptionTest})
ADD_DEPENDENCIES(buildTests testStelFileMgr)
SET(tests_testStelSphereGeometry_SRCS SET(tests_testStelSphereGeometry_SRCS
tests/testStelSphereGeometry.hpp
tests/testStelSphereGeometry.cpp tests/testStelSphereGeometry.cpp
core/StelSphereGeometry.hpp core/StelSphereGeometry.hpp
core/StelSphereGeometry.cpp core/StelSphereGeometry.cpp
core/OctahedronPolygon.hpp
core/OctahedronPolygon.cpp
core/StelJsonParser.hpp
core/StelJsonParser.cpp
core/StelUtils.cpp core/StelUtils.cpp
core/StelUtils.hpp) core/StelUtils.hpp
ADD_EXECUTABLE(testStelSphereGeometry ${tests_testStelSphereGeometry_SRCS}) ${glues_lib_SRCS})
TARGET_LINK_LIBRARIES(testStelSphereGeometry ${extLinkerOption}) QT4_WRAP_CPP(testStelSphereGeometry_MOC_SRCS tests/testStelSphereGeometry.h
ADD_TEST(test_testStelSphereGeometry ${EXECUTABLE_OUTPUT_PATH}/testStelSphe pp)
reGeometry) ADD_EXECUTABLE(testStelSphereGeometry EXCLUDE_FROM_ALL ${tests_testStelSphe
reGeometry_SRCS} ${testStelSphereGeometry_MOC_SRCS})
TARGET_LINK_LIBRARIES(testStelSphereGeometry ${extLinkerOptionTest} ${QT_QT
OPENGL_LIBRARY})
ADD_DEPENDENCIES(buildTests testStelSphereGeometry)
SET(tests_testStelSphericalIndex_SRCS
tests/testStelSphericalIndex.hpp
tests/testStelSphericalIndex.cpp
core/StelSphericalIndex.hpp
core/StelSphericalIndex.cpp
core/StelSphereGeometry.hpp
core/StelSphereGeometry.cpp
core/OctahedronPolygon.hpp
core/OctahedronPolygon.cpp
core/StelJsonParser.hpp
core/StelJsonParser.cpp
core/StelUtils.cpp
core/StelUtils.hpp
${glues_lib_SRCS})
QT4_WRAP_CPP(tests_testStelSphericalIndex_MOC_SRCS tests/testStelSphericalI
ndex.hpp)
ADD_EXECUTABLE(testStelSphericalIndex EXCLUDE_FROM_ALL ${tests_testStelSphe
ricalIndex_SRCS} ${tests_testStelSphericalIndex_MOC_SRCS})
TARGET_LINK_LIBRARIES(testStelSphericalIndex ${extLinkerOptionTest} ${QT_QT
OPENGL_LIBRARY})
ADD_DEPENDENCIES(buildTests testStelSphericalIndex)
SET(tests_testStelJsonParser_SRCS
tests/testStelJsonParser.hpp
tests/testStelJsonParser.cpp
core/StelJsonParser.hpp
core/StelJsonParser.cpp)
QT4_WRAP_CPP(tests_testStelJsonParser_MOC_SRCS tests/testStelJsonParser.hpp
)
ADD_EXECUTABLE(testStelJsonParser EXCLUDE_FROM_ALL ${tests_testStelJsonPars
er_SRCS} ${tests_testStelJsonParser_MOC_SRCS})
TARGET_LINK_LIBRARIES(testStelJsonParser ${extLinkerOptionTest})
ADD_DEPENDENCIES(buildTests testStelJsonParser)
SET(tests_testStelVertexArray_SRCS
tests/testStelVertexArray.hpp
tests/testStelVertexArray.cpp
core/StelVertexArray.hpp)
QT4_WRAP_CPP(tests_testStelVertexArray_MOC_SRCS tests/testStelVertexArray.h
pp)
ADD_EXECUTABLE(testStelVertexArray EXCLUDE_FROM_ALL ${tests_testStelVertexA
rray_SRCS} ${tests_testStelVertexArray_MOC_SRCS})
TARGET_LINK_LIBRARIES(testStelVertexArray ${extLinkerOptionTest})
ADD_DEPENDENCIES(buildTests testStelVertexArray)
ADD_CUSTOM_TARGET(tests COMMENT "Run the Stellarium unit tests")
# ADD_CUSTOM_COMMAND(TARGET tests POST_BUILD COMMAND ./testDates WORKING_DI
RECTORY ${CMAKE_BINARY_DIR}/src/)
ADD_CUSTOM_COMMAND(TARGET tests POST_BUILD COMMAND ./testStelFileMgr WORKIN
G_DIRECTORY ${CMAKE_BINARY_DIR}/src/)
ADD_CUSTOM_COMMAND(TARGET tests POST_BUILD COMMAND ./testStelSphereGeometry
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/src/)
ADD_CUSTOM_COMMAND(TARGET tests POST_BUILD COMMAND ./testStelSphericalIndex
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/src/)
ADD_CUSTOM_COMMAND(TARGET tests POST_BUILD COMMAND ./testStelJsonParser WOR
KING_DIRECTORY ${CMAKE_BINARY_DIR}/src/)
ADD_CUSTOM_COMMAND(TARGET tests POST_BUILD COMMAND ./testStelVertexArray WO
RKING_DIRECTORY ${CMAKE_BINARY_DIR}/src/)
ADD_DEPENDENCIES(tests buildTests)
 End of changes. 41 change blocks. 
110 lines changed or deleted 354 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/