CMakeLists.txt   CMakeLists.txt 
skipping to change at line 31 skipping to change at line 31
core/external/glues_stel/source/libtess/render.c core/external/glues_stel/source/libtess/render.c
core/external/glues_stel/source/libtess/render.h core/external/glues_stel/source/libtess/render.h
core/external/glues_stel/source/libtess/sweep.c core/external/glues_stel/source/libtess/sweep.c
core/external/glues_stel/source/libtess/sweep.h core/external/glues_stel/source/libtess/sweep.h
core/external/glues_stel/source/libtess/tess.c core/external/glues_stel/source/libtess/tess.c
core/external/glues_stel/source/libtess/tess.h core/external/glues_stel/source/libtess/tess.h
core/external/glues_stel/source/libtess/tessmono.c core/external/glues_stel/source/libtess/tessmono.c
core/external/glues_stel/source/libtess/tessmono.h core/external/glues_stel/source/libtess/tessmono.h
) )
SET(zlib_SRCS
core/external/zlib/adler32.c
core/external/zlib/compress.c
core/external/zlib/crc32.c
core/external/zlib/crc32.h
core/external/zlib/deflate.c
core/external/zlib/deflate.h
core/external/zlib/gzclose.c
core/external/zlib/gzguts.h
core/external/zlib/gzlib.c
core/external/zlib/gzread.c
core/external/zlib/gzwrite.c
core/external/zlib/infback.c
core/external/zlib/inffast.c
core/external/zlib/inffast.h
core/external/zlib/inffixed.h
core/external/zlib/inflate.c
core/external/zlib/inflate.h
core/external/zlib/inftrees.c
core/external/zlib/inftrees.h
core/external/zlib/trees.c
core/external/zlib/trees.h
core/external/zlib/uncompr.c
core/external/zlib/zconf.h
core/external/zlib/zlib.h
core/external/zlib/zutil.c
core/external/zlib/zutil.h
)
SET(stellarium_lib_SRCS SET(stellarium_lib_SRCS
core/StelAudioMgr.hpp core/StelAudioMgr.hpp
core/StelAudioMgr.cpp core/StelAudioMgr.cpp
core/StelVideoMgr.hpp core/StelVideoMgr.hpp
core/StelVideoMgr.cpp core/StelVideoMgr.cpp
core/StelGeodesicGrid.cpp core/StelGeodesicGrid.cpp
core/StelGeodesicGrid.hpp core/StelGeodesicGrid.hpp
core/StelMovementMgr.cpp core/StelMovementMgr.cpp
core/StelMovementMgr.hpp core/StelMovementMgr.hpp
core/StelObserver.cpp core/StelObserver.cpp
skipping to change at line 53 skipping to change at line 82
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/StelSkyDrawer.cpp core/StelSkyDrawer.cpp
core/StelSkyDrawer.hpp core/StelSkyDrawer.hpp
core/StelPainter.hpp
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/StelAppGraphicsWidget.cpp
core/StelAppGraphicsWidget.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
core/StelObjectModule.cpp core/StelObjectModule.cpp
core/StelObjectModule.hpp core/StelObjectModule.hpp
core/StelObjectType.hpp core/StelObjectType.hpp
core/StelOpenGL.cpp
core/StelOpenGL.hpp
core/StelPluginInterface.hpp core/StelPluginInterface.hpp
core/StelSkyCultureMgr.cpp core/StelSkyCultureMgr.cpp
core/StelSkyCultureMgr.hpp core/StelSkyCultureMgr.hpp
core/StelTextureMgr.cpp
core/StelTextureMgr.hpp
core/StelTexture.cpp
core/StelTexture.hpp
core/StelTextureTypes.hpp
core/StelToneReproducer.cpp core/StelToneReproducer.cpp
core/StelToneReproducer.hpp core/StelToneReproducer.hpp
core/StelSkyLayerMgr.cpp core/StelSkyLayerMgr.cpp
core/StelSkyLayerMgr.hpp core/StelSkyLayerMgr.hpp
core/StelSkyLayer.hpp core/StelSkyLayer.hpp
core/StelSkyLayer.cpp core/StelSkyLayer.cpp
core/StelFader.hpp core/StelFader.hpp
core/StelSphereGeometry.cpp core/StelSphereGeometry.cpp
core/StelSphereGeometry.hpp core/StelSphereGeometry.hpp
core/TriangleIterator.hpp
core/OctahedronPolygon.cpp core/OctahedronPolygon.cpp
core/OctahedronPolygon.hpp 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/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.hpp
core/StelSphericalIndex.cpp core/StelSphericalIndex.cpp
core/StelVertexArray.hpp
core/StelVertexArray.cpp
core/StelGuiBase.hpp core/StelGuiBase.hpp
core/StelGuiBase.cpp core/StelGuiBase.cpp
core/StelViewportEffect.hpp core/StelViewportEffect.hpp
core/StelViewportEffect.cpp core/StelViewportEffect.cpp
core/TrailGroup.hpp core/TrailGroup.hpp
core/TrailGroup.cpp core/TrailGroup.cpp
core/RefractionExtinction.hpp core/RefractionExtinction.hpp
core/RefractionExtinction.cpp core/RefractionExtinction.cpp
core/StelLoadingBar.cpp core/StelActionMgr.hpp
core/StelLoadingBar.hpp core/StelActionMgr.cpp
core/StelShortcutMgr.hpp core/StelProgressController.hpp
core/StelShortcutMgr.cpp
core/StelShortcutGroup.cpp
core/StelShortcutGroup.hpp
core/Triplet.hpp
core/renderer/StelRendererStatistics.hpp
core/renderer/StelRenderer.cpp
core/renderer/StelRenderer.hpp
core/renderer/StelQGLViewport.cpp
core/renderer/StelQGLViewport.hpp
core/renderer/StelQGLRenderer.cpp
core/renderer/StelQGLRenderer.hpp
core/renderer/StelQGL1Renderer.hpp
core/renderer/StelQGL2Renderer.hpp
core/renderer/StelCircleArcRenderer.hpp
core/renderer/StelGLCompatibility.hpp
core/renderer/StelGLUtilityFunctions.cpp
core/renderer/StelGLUtilityFunctions.hpp
core/renderer/StelIndexBuffer.hpp
core/renderer/StelQGLIndexBuffer.hpp
core/renderer/StelVertexBuffer.hpp
core/renderer/StelVertexBufferBackend.hpp
core/renderer/StelQGLArrayVertexBufferBackend.cpp
core/renderer/StelQGLArrayVertexBufferBackend.hpp
core/renderer/StelQGLInterleavedArrayVertexBufferBackend.cpp
core/renderer/StelQGLInterleavedArrayVertexBufferBackend.hpp
core/renderer/StelQGL1InterleavedArrayVertexBufferBackend.cpp
core/renderer/StelQGL1InterleavedArrayVertexBufferBackend.hpp
core/renderer/StelQGL2InterleavedArrayVertexBufferBackend.cpp
core/renderer/StelQGL2InterleavedArrayVertexBufferBackend.hpp
core/renderer/StelQGL1ArrayVertexBufferBackend.cpp
core/renderer/StelQGL1ArrayVertexBufferBackend.hpp
core/renderer/StelQGL2ArrayVertexBufferBackend.cpp
core/renderer/StelQGL2ArrayVertexBufferBackend.hpp
core/renderer/StelVertexAttribute.hpp
core/renderer/StelGeometryBuilder.hpp
core/renderer/StelGeometryBuilder.cpp
core/renderer/GenericVertexTypes.hpp
core/renderer/StelTextureParams.hpp
core/renderer/StelTextureNew.cpp
core/renderer/StelTextureNew.hpp
core/renderer/StelTextureBackend.hpp
core/renderer/StelTextureCache.hpp
core/renderer/StelQGLTextureBackend.cpp
core/renderer/StelQGLTextureBackend.hpp
core/renderer/StelTextureLoader.hpp
core/renderer/StelLight.hpp
core/renderer/StelGLSLShader.hpp
core/renderer/StelQGLGLSLShader.hpp
core/renderer/StelQGLGLSLShader.cpp
${gl_lib_SRCS} ${gl_lib_SRCS}
core/external/fixx11h.h
core/external/gettext.h
core/external/kfilter/kfilterdev.h
core/external/kfilter/kfilterdev.cpp
core/external/kfilter/kfilterbase.h
core/external/kfilter/kfilterbase.cpp
core/external/kfilter/kgzipfilter.h
core/external/kfilter/kgzipfilter.cpp
core/external/kfilter/kzip.h
core/external/kfilter/kzip.cpp
core/external/kfilter/klimitediodevice.h
core/external/kfilter/klimitediodevice.cpp
core/external/kfilter/karchive.h
core/external/kfilter/karchive.cpp
${glues_lib_SRCS} ${glues_lib_SRCS}
core/planetsephems/calc_interpolated_elements.c core/planetsephems/calc_interpolated_elements.c
core/planetsephems/calc_interpolated_elements.h core/planetsephems/calc_interpolated_elements.h
core/planetsephems/elliptic_to_rectangular.c core/planetsephems/elliptic_to_rectangular.c
core/planetsephems/elliptic_to_rectangular.h core/planetsephems/elliptic_to_rectangular.h
core/planetsephems/elp82b.c core/planetsephems/elp82b.c
core/planetsephems/elp82b.h core/planetsephems/elp82b.h
core/planetsephems/gust86.c core/planetsephems/gust86.c
core/planetsephems/gust86.h core/planetsephems/gust86.h
core/planetsephems/l1.c core/planetsephems/l1.c
core/planetsephems/l1.h core/planetsephems/l1.h
core/planetsephems/marssat.c core/planetsephems/marssat.c
core/planetsephems/marssat.h core/planetsephems/marssat.h
core/planetsephems/pluto.c core/planetsephems/pluto.c
core/planetsephems/pluto.h core/planetsephems/pluto.h
core/planetsephems/sideral_time.c core/planetsephems/sidereal_time.c
core/planetsephems/sideral_time.h core/planetsephems/sidereal_time.h
core/planetsephems/stellplanet.c core/planetsephems/stellplanet.c
core/planetsephems/stellplanet.h core/planetsephems/stellplanet.h
core/planetsephems/tass17.c core/planetsephems/tass17.c
core/planetsephems/tass17.h core/planetsephems/tass17.h
core/planetsephems/vsop87.c core/planetsephems/vsop87.c
core/planetsephems/vsop87.h core/planetsephems/vsop87.h
core/modules/Atmosphere.cpp core/modules/Atmosphere.cpp
core/modules/Atmosphere.hpp core/modules/Atmosphere.hpp
core/modules/Constellation.cpp core/modules/Constellation.cpp
skipping to change at line 269 skipping to change at line 234
core/modules/Solve.hpp core/modules/Solve.hpp
core/modules/Star.cpp core/modules/Star.cpp
core/modules/Star.hpp core/modules/Star.hpp
core/modules/StarMgr.cpp core/modules/StarMgr.cpp
core/modules/StarMgr.hpp core/modules/StarMgr.hpp
core/modules/StarWrapper.cpp core/modules/StarWrapper.cpp
core/modules/StarWrapper.hpp core/modules/StarWrapper.hpp
core/modules/ZoneArray.cpp core/modules/ZoneArray.cpp
core/modules/ZoneArray.hpp core/modules/ZoneArray.hpp
core/modules/ZoneData.hpp core/modules/ZoneData.hpp
StelMainView.hpp
StelMainGraphicsView.hpp StelMainView.cpp
StelMainGraphicsView.cpp
StelMainWindow.hpp
StelMainWindow.cpp
StelLogger.hpp StelLogger.hpp
StelLogger.cpp StelLogger.cpp
CLIProcessor.hpp CLIProcessor.hpp
CLIProcessor.cpp CLIProcessor.cpp
translations.h translations.h
config.h
) )
# On windows, QZipReader is already included in the lib
IF(!WIN32)
SET(stellarium_lib_SRCS ${stellarium_lib_SRCS}
core/external/qtcompress/qzip.cpp
core/external/qtcompress/qzipreader.h
core/external/qtcompress/qzipwriter.h
)
ENDIF()
IF(ENABLE_SCRIPTING) IF(ENABLE_SCRIPTING)
SET(stellarium_lib_SRCS ${stellarium_lib_SRCS} SET(stellarium_lib_SRCS ${stellarium_lib_SRCS}
scripting/StelScriptMgr.cpp scripting/StelScriptMgr.cpp
scripting/StratoscriptPreprocessor.cpp scripting/StratoscriptPreprocessor.cpp
scripting/StelScriptMgr.hpp scripting/StelScriptMgr.hpp
scripting/ScreenImageMgr.hpp scripting/ScreenImageMgr.hpp
scripting/ScreenImageMgr.cpp scripting/ScreenImageMgr.cpp
scripting/StelMainScriptAPI.cpp scripting/StelMainScriptAPI.cpp
scripting/StelMainScriptAPI.hpp scripting/StelMainScriptAPI.hpp
scripting/StelMainScriptAPIProxy.cpp scripting/StelMainScriptAPIProxy.cpp
scripting/StelMainScriptAPIProxy.hpp scripting/StelMainScriptAPIProxy.hpp
) )
ENDIF() ENDIF()
IF(WIN32) IF(WIN32)
SET(stellarium_lib_SRCS ${stellarium_lib_SRCS} SET(stellarium_lib_SRCS ${stellarium_lib_SRCS}
core/external/kdewin32/basetyps.h ${zlib_SRCS}
core/external/kdewin32/byteswap.h
core/external/kdewin32/comcat.h
core/external/kdewin32/dirent.h
core/external/kdewin32/docobj.h
core/external/kdewin32/errno.h
core/external/kdewin32/fcntl.h
core/external/kdewin32/grp.h
core/external/kdewin32/ifaddrs.h
core/external/kdewin32/langinfo.h
core/external/kdewin32/mshtml.h
core/external/kdewin32/netdb.h
core/external/kdewin32/nl_types.h
core/external/kdewin32/oaidl.h
core/external/kdewin32/objfwd.h
core/external/kdewin32/objidl.h
core/external/kdewin32/ocidl.h
core/external/kdewin32/olectl.h
core/external/kdewin32/oleidl.h
core/external/kdewin32/pwd.h
core/external/kdewin32/signal.h
core/external/kdewin32/stdio.h
core/external/kdewin32/stdlib.h
core/external/kdewin32/string.h
core/external/kdewin32/strings.h
core/external/kdewin32/syslog.h
core/external/kdewin32/time.h
core/external/kdewin32/unistd.h
core/external/kdewin32/unknwn.h
core/external/kdewin32/wchar.h
core/external/kdewin32/arpa/inet.h
core/external/kdewin32/asm/byteorder.h
core/external/kdewin32/net/if.h
core/external/kdewin32/netinet/in.h
core/external/kdewin32/netinet/tcp.h
core/external/kdewin32/sys/ioctl.h
core/external/kdewin32/sys/mman.h
core/external/kdewin32/sys/resource.h
core/external/kdewin32/sys/select.h
core/external/kdewin32/sys/signal.h
core/external/kdewin32/sys/socket.h
core/external/kdewin32/sys/stat.h
core/external/kdewin32/sys/time.h
core/external/kdewin32/sys/times.h
core/external/kdewin32/sys/types.h
core/external/kdewin32/sys/uio.h
core/external/kdewin32/sys/un.h
core/external/kdewin32/sys/unistd.h
core/external/kdewin32/sys/utsname.h
core/external/kdewin32/sys/wait.h
core/external/kdewin32/bind/inet_ntop.c
core/external/kdewin32/bind/inet_pton.c
core/external/kdewin32/dirent.c
core/external/kdewin32/errno.c
core/external/kdewin32/fsync.c
core/external/kdewin32/getenv.c
core/external/kdewin32/grp.c
core/external/kdewin32/inet.c
core/external/kdewin32/mmap.c
core/external/kdewin32/nl_langinfo.c
core/external/kdewin32/net.c
core/external/kdewin32/pwd.c
core/external/kdewin32/realpath.c
core/external/kdewin32/resource.c
core/external/kdewin32/signal.c
core/external/kdewin32/stdlib.c
core/external/kdewin32/string.c
core/external/kdewin32/strptime.c
core/external/kdewin32/syslog.c
core/external/kdewin32/time.c
core/external/kdewin32/uname.c
core/external/kdewin32/unistd.c
) )
ENDIF(WIN32) ENDIF()
SET(stellarium_exe_SRCS main.cpp) SET(stellarium_exe_SRCS main.cpp)
################# compiles resources files ############ ################# compiles resources files ############
SET(stellarium_RES ${CMAKE_SOURCE_DIR}/data/mainRes.qrc) SET(stellarium_RES ${CMAKE_SOURCE_DIR}/data/mainRes.qrc)
QT4_ADD_RESOURCES(stellarium_RES_CXX ${stellarium_RES}) QT5_ADD_RESOURCES(stellarium_RES_CXX ${stellarium_RES})
########################################################################### ################## ########################################################################### ##################
############################# Standard GUI plugin compilation ############# ################## ############################# Standard GUI plugin compilation ############# ##################
########################################################################### ################## ########################################################################### ##################
IF (GUI_MODE STREQUAL "Standard") IF(GUI_MODE STREQUAL "Standard")
SET(stellarium_gui_SRCS SET(stellarium_gui_SRCS
gui/StelGui.hpp gui/StelGui.hpp
gui/StelGui.cpp gui/StelGui.cpp
gui/SkyGui.hpp gui/SkyGui.hpp
gui/SkyGui.cpp gui/SkyGui.cpp
gui/StelStyle.hpp gui/StelStyle.hpp
gui/StelGuiItems.hpp gui/StelGuiItems.hpp
gui/StelGuiItems.cpp gui/StelGuiItems.cpp
gui/HelpDialog.hpp gui/HelpDialog.hpp
gui/HelpDialog.cpp gui/HelpDialog.cpp
skipping to change at line 434 skipping to change at line 335
gui/helpDialogGui.ui gui/helpDialogGui.ui
gui/shortcutsDialog.ui gui/shortcutsDialog.ui
gui/dateTimeDialogGui.ui gui/dateTimeDialogGui.ui
gui/viewDialog.ui gui/viewDialog.ui
gui/searchDialogGui.ui gui/searchDialogGui.ui
gui/configurationDialog.ui gui/configurationDialog.ui
gui/AtmosphereDialog.ui gui/AtmosphereDialog.ui
gui/CustomDeltaTEquationDialog.ui gui/CustomDeltaTEquationDialog.ui
gui/addRemoveLandscapesDialog.ui) gui/addRemoveLandscapesDialog.ui)
IF(ENABLE_SCRIPT_CONSOLE) IF(ENABLE_SCRIPTING)
IF(ENABLE_SCRIPT_CONSOLE)
SET(stellarium_gui_SRCS ${stellarium_gui_SRCS} SET(stellarium_gui_SRCS ${stellarium_gui_SRCS}
gui/ScriptConsole.hpp gui/ScriptConsole.hpp
gui/ScriptConsole.cpp gui/ScriptConsole.cpp
gui/StelScriptSyntaxHighlighter.hpp gui/StelScriptSyntaxHighlighter.hpp
gui/StelScriptSyntaxHighlighter.cpp) gui/StelScriptSyntaxHighlighter.cpp)
SET(stellarium_UIS ${stellarium_UIS} SET(stellarium_UIS ${stellarium_UIS}
gui/scriptConsole.ui) gui/scriptConsole.ui)
ENDIF(ENABLE_SCRIPT_CONSOLE) ENDIF()
ENDIF()
QT4_WRAP_UI(stellarium_UIS_H ${stellarium_UIS}) QT5_WRAP_UI(stellarium_UIS_H ${stellarium_UIS})
# compiles resources files # compiles resources files
SET(stellarium_gui_RES ${CMAKE_SOURCE_DIR}/data/gui/guiRes.qrc) SET(stellarium_gui_RES ${CMAKE_SOURCE_DIR}/data/gui/guiRes.qrc)
QT4_ADD_RESOURCES(stellarium_gui_RES_CXX ${stellarium_gui_RES}) QT5_ADD_RESOURCES(stellarium_gui_RES_CXX ${stellarium_gui_RES})
SET(extLinkerOption ${QT_LIBRARIES} ${QT_QTSCRIPT_LIBRARY} ${OPENGL_ LIBRARIES} ${ICONV_LIBRARIES} ${INTL_LIBRARIES} ) SET(extLinkerOption ${QT_QTSCRIPT_LIBRARY} ${OPENGL_LIBRARIES})
# Compile the static library # Compile the static library
ADD_LIBRARY(StelGuiLib STATIC ${stellarium_gui_SRCS} ${stellarium_UI S_H} ${stellarium_gui_RES_CXX}) ADD_LIBRARY(StelGuiLib STATIC ${stellarium_gui_SRCS} ${stellarium_UI S_H} ${stellarium_gui_RES_CXX})
TARGET_LINK_LIBRARIES(StelGuiLib ${StelMain} ${extLinkerOption}) TARGET_LINK_LIBRARIES(StelGuiLib ${StelMain} ${extLinkerOption})
QT5_USE_MODULES(StelGuiLib Core Gui Widgets Network OpenGL Script De clarative)
SET_TARGET_PROPERTIES(StelGuiLib PROPERTIES COMPILE_FLAGS "-DQT_STAT ICPLUGIN") SET_TARGET_PROPERTIES(StelGuiLib PROPERTIES COMPILE_FLAGS "-DQT_STAT ICPLUGIN")
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_ LIBRARIES} ${CMAKE_BINARY_DIR}/src/${CMAKE_CFG_INTDIR}/libStelGuiLib.a) SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS _LIBRARIES} StelGuiLib)
ADD_DEPENDENCIES(AllStaticPlugins StelGuiLib) ADD_DEPENDENCIES(AllStaticPlugins StelGuiLib)
ENDIF() ENDIF()
########################################################################### ################## ########################################################################### ##################
################################ No GUI plugin compilation ################ ################## ################################ No GUI plugin compilation ################ ##################
########################################################################### ################## ########################################################################### ##################
IF (GUI_MODE STREQUAL "None") IF (GUI_MODE STREQUAL "None")
SET(stellarium_nogui_SRCS SET(stellarium_nogui_SRCS
noGui/StelNoGui.hpp noGui/StelNoGui.hpp
noGui/StelNoGui.cpp) noGui/StelNoGui.cpp)
ADD_LIBRARY(StelNoGuiLib STATIC ${stellarium_nogui_SRCS}) ADD_LIBRARY(StelNoGuiLib STATIC ${stellarium_nogui_SRCS})
TARGET_LINK_LIBRARIES(StelNoGuiLib ${extLinkerOption}) TARGET_LINK_LIBRARIES(StelNoGuiLib ${extLinkerOption})
SET_TARGET_PROPERTIES(StelNoGuiLib PROPERTIES COMPILE_FLAGS "-DQT_ST ATICPLUGIN") SET_TARGET_PROPERTIES(StelNoGuiLib PROPERTIES COMPILE_FLAGS "-DQT_ST ATICPLUGIN")
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_ LIBRARIES} ${CMAKE_BINARY_DIR}/src/libStelNoGuiLib.a) SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS _LIBRARIES} StelNoGuiLib)
ADD_DEPENDENCIES(AllStaticPlugins StelNoGuiLib) ADD_DEPENDENCIES(AllStaticPlugins StelNoGuiLib)
ENDIF() ENDIF()
########################################################################### ################## ########################################################################### ##################
############################# External GUI plugin compilation ############# ################## ############################# External GUI plugin compilation ############# ##################
########################################################################### ################## ########################################################################### ##################
IF (GUI_MODE STREQUAL "External") 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") 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 ) 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(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(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}) SET(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} ${EXTERNAL_GUI_ PLUGIN_EXTRALIBS})
ENDIF() ENDIF()
########################################################################### #################### ########################################################################### ####################
################## Static plugins need to be known by the file StelMainGrap hicsView.cpp at compilation time ################## Static plugins need to be known by the file StelMainView .cpp at compilation time
################## so add the definitions to the compilation. ################## so add the definitions to the compilation.
################## Also add the full path to the .a libraries at compilatio n time. ################## Also add the full path to the .a libraries at compilatio n time.
IF (BUILD_STATIC_PLUGINS)
### demo plugins ###
IF (USE_PLUGIN_HELLOSTELMODULE) ### demo plugins ###
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/HelloStelModule/src/${CMAKE
_CFG_INTDIR}/libHelloStelModule.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_HELLOSTELMODULE)
ENDIF()
IF (USE_PLUGIN_SIMPLEDRAWLINE)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/SimpleDrawLine/src/${CMAKE_
CFG_INTDIR}/libSimpleDrawLine.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_SIMPLEDRAWLINE)
ENDIF()
### work plugins ###
IF (USE_PLUGIN_ANGLEMEASURE)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/AngleMeasure/src/${CMAKE_CF
G_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_CF
G_INTDIR}/libCompassMarks.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_COMPASSMARKS)
ENDIF()
IF (USE_PLUGIN_EXOPLANETS)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Exoplanets/src/${CMAKE_CFG_
INTDIR}/libExoplanets.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_EXOPLANETS)
ENDIF()
IF (USE_PLUGIN_LOGBOOK)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/LogBook/src/${CMAKE_CFG_INT
DIR}/libLogBook.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_LOGBOOK)
SET(QT_USE_QTSQL TRUE)
ENDIF()
IF (USE_PLUGIN_NOVAE)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Novae/src/${CMAKE_CFG_INTDI
R}/libNovae.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_NOVAE)
ENDIF()
IF (USE_PLUGIN_OBSERVABILITY)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Observability/src/${CMAKE_C
FG_INTDIR}/libObservability.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_OBSERVABILITY)
ENDIF()
IF (USE_PLUGIN_OCULARS)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Oculars/src/${CMAKE_CFG_INT
DIR}/libOculars.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_OCULARS)
# SET(QT_USE_QTSQL TRUE)
ENDIF()
IF (USE_PLUGIN_PULSARS)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Pulsars/src/${CMAKE_CFG_INT
DIR}/libPulsars.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_PULSARS)
ENDIF()
IF (USE_PLUGIN_QUASARS)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Quasars/src/${CMAKE_CFG_INT
DIR}/libQuasars.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_QUASARS)
ENDIF()
IF (USE_PLUGIN_RENDERERSTATISTICS)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/RendererStatistics/src/${CM
AKE_CFG_INTDIR}/libRendererStatistics.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_RENDERERSTATISTICS)
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_SOLARSYSTEMEDITOR)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/SolarSystemEditor/src/${CMA
KE_CFG_INTDIR}/libSolarSystemEditor.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_SOLARSYSTEMEDITOR)
ENDIF()
IF (USE_PLUGIN_SUPERNOVAE)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Supernovae/src/${CMAKE_CFG_
INTDIR}/libSupernovae.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_SUPERNOVAE)
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)
IF(APPLE)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM
_STATIC_PLUGINS_LIBRARIES} "-framework QtDeclarative")
ELSE(APPLE)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM
_STATIC_PLUGINS_LIBRARIES} ${QT_LIBRARY_DIR}/libQtDeclarative.so)
ENDIF(APPLE)
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_SVMT)
ENDIF()
IF (USE_PLUGIN_TELESCOPECONTROL)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/TelescopeControl/src/${CMAK
E_CFG_INTDIR}/libTelescopeControl.a")
IF(WIN32)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM
_STATIC_PLUGINS_LIBRARIES} libwsock32.a)
ENDIF(WIN32)
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_TELESCOPECONTROL)
ENDIF()
IF (USE_PLUGIN_TEXTUSERINTERFACE) FOREACH(NAME ${STELLARIUM_PLUGINS})
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_ STRING(TOUPPER ${NAME} NAME_UP)
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/TextUserInterface/src/${CMA IF(USE_PLUGIN_${NAME_UP})
KE_CFG_INTDIR}/libTextUserInterface.a") SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_TEXTUSERINTERFACE) PLUGINS_LIBRARIES} ${NAME}-static)
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_${NAME_UP})
ENDIF() ENDIF()
ENDFOREACH()
IF (USE_PLUGIN_TIMEZONECONFIGURATION) IF(USE_PLUGIN_LOGBOOK)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_ SET(QT_USE_QTSQL TRUE)
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/TimeZoneConfiguration/src/$ ENDIF()
{CMAKE_CFG_INTDIR}/libTimeZoneConfiguration.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_TIMEZONECONFIGURATION)
ENDIF()
IF (USE_PLUGIN_VIRGO) IF(USE_PLUGIN_SVMT)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_ SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS
PLUGINS_LIBRARIES} ${CMAKE_BINARY_DIR}/plugins/VirGO/src/${CMAKE_CFG_INTDIR _LIBRARIES} ${CMAKE_BINARY_DIR}/plugins/svmt/src/${CMAKE_CFG_INTDIR}/libSVM
}/libVirGO.a ${CFITSIO_LIBRARIES}) T.a)
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_VIRGO) IF(APPLE)
ENDIF() SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC
_PLUGINS_LIBRARIES} "-framework QtDeclarative")
ELSE(APPLE)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC
_PLUGINS_LIBRARIES} ${QT_LIBRARY_DIR}/libQtDeclarative.so)
ENDIF(APPLE)
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_SVMT)
ENDIF()
IF(USE_PLUGIN_TELESCOPECONTROL)
# WinSock library
IF(WIN32)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS
_LIBRARIES} ws2_32)
ENDIF()
ENDIF() ENDIF()
########################################################################### ################## ########################################################################### ##################
################################ Build main program ####################### ################## ################################ Build main program ####################### ##################
########################################################################### ################## ########################################################################### ##################
SET(extLinkerOption ${QT_LIBRARIES} ${OPENGL_LIBRARIES} ${ICONV_LIBRARIES} SET(extLinkerOption ${OPENGL_LIBRARIES} ${ZLIB_LIBRARIES})
${INTL_LIBRARIES} ${ZLIB_LIBRARIES}) IF(WIN32 AND NOT MSVC)
IF(ENABLE_SCRIPTING) # TODO: Test if winsock is still necessary if the Telescope Control plug-in
SET(extLinkerOption ${extLinkerOption} ${QT_QTSCRIPT_LIBRARY}) is disabled.
ENDIF() # Because including it here seems to duplicate STELLARIUM_STATIC_PLUGINS_LI
IF(WIN32) BRARIES
SET(extLinkerOption ${extLinkerOption} libwinmm.a -lws2_32) SET(extLinkerOption ${extLinkerOption} libwinmm.a -lws2_32)
ENDIF() ENDIF()
IF(WIN32 AND ENABLE_WINDOWS_EXE_ICON) IF(WIN32 AND ENABLE_WINDOWS_EXE_ICON)
IF(RC_COMPILER_PATH) IF(RC_COMPILER_PATH)
ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_BINARY_DIR}/stellarium-rc.o ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_BINARY_DIR}/stellarium-rc.o
COMMAND ${RC_COMPILER_PATH} ${CMAKE_SOURCE_DIR}/data /stellarium.rc ${CMAKE_BINARY_DIR}/stellarium-rc.o COMMAND ${RC_COMPILER_PATH} ${CMAKE_SOURCE_DIR}/data /stellarium.rc ${CMAKE_BINARY_DIR}/stellarium-rc.o
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/data) WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/data)
SET(stellarium_exe_SRCS ${stellarium_exe_SRCS} ${CMAKE_BINARY_DIR}/stel larium-rc.o) SET(stellarium_exe_SRCS ${stellarium_exe_SRCS} ${CMAKE_BINARY_DIR}/stel larium-rc.o)
ENDIF(RC_COMPILER_PATH) ELSE()
ENDIF(WIN32 AND ENABLE_WINDOWS_EXE_ICON) IF(MSVC)
SET(stellarium_exe_SRCS ${stellarium_exe_SRCS} ${CMAKE_SOURCE_DIR}/da
ta/stellarium.rc)
ENDIF()
ENDIF()
ENDIF()
IF(GENERATE_STELMAINLIB) IF(GENERATE_STELMAINLIB)
ADD_LIBRARY(stelMain SHARED ${stellarium_lib_SRCS} ${stellarium_RES_CXX}) ADD_LIBRARY(stelMain SHARED ${stellarium_lib_SRCS} ${stellarium_RES_CXX})
TARGET_LINK_LIBRARIES(stelMain ${extLinkerOption} ${STELLARIUM_STATIC_PLUG INS_LIBRARIES}) TARGET_LINK_LIBRARIES(stelMain ${extLinkerOption} ${STELLARIUM_STATIC_PLUG INS_LIBRARIES})
QT5_USE_MODULES(stelMain Core Concurrent Declarative Gui Network OpenGL Sc
ript Widgets)
IF(ENABLE_SOUND)
QT5_USE_MODULES(stelMain Multimedia)
ENDIF()
INSTALL(TARGETS stelMain DESTINATION lib) INSTALL(TARGETS stelMain DESTINATION lib)
ADD_EXECUTABLE(stellarium ${stellarium_exe_SRCS}) ADD_EXECUTABLE(stellarium ${stellarium_exe_SRCS})
#stelMain should be after the plug-ins, otherwise the build crashes #stelMain should be after the plug-ins, otherwise the build crashes
TARGET_LINK_LIBRARIES(stellarium ${STELLARIUM_STATIC_PLUGINS_LIBRARIES} st elMain ${extLinkerOption}) TARGET_LINK_LIBRARIES(stellarium ${STELLARIUM_STATIC_PLUGINS_LIBRARIES} st elMain ${extLinkerOption})
ELSE() ELSE()
ADD_EXECUTABLE(stellarium ${stellarium_lib_SRCS} ${stellarium_RES_CXX} ${s tellarium_exe_SRCS}) ADD_EXECUTABLE(stellarium ${stellarium_lib_SRCS} ${stellarium_RES_CXX} ${s tellarium_exe_SRCS})
TARGET_LINK_LIBRARIES(stellarium ${extLinkerOption} ${STELLARIUM_STATIC_PL UGINS_LIBRARIES}) TARGET_LINK_LIBRARIES(stellarium ${extLinkerOption} ${STELLARIUM_STATIC_PL UGINS_LIBRARIES})
IF(APPLE) # This will add the ANGLE lib if the Qt version supports it.
# SET_TARGET_PROPERTIES(stellarium PROPERTIES LINK_FLAGS " -dylib_file /Sys TARGET_LINK_LIBRARIES(stellarium ${Qt5Gui_LIBRARIES} ${Qt5Gui_OPENGL_LIBRA
tem/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/S RIES})
ystem/Library/Frameworks/works/OpenGL.framework/Versions/A/Libraries/libGL.
dylib -framework Cocoa -framework QtDeclarative") QT5_USE_MODULES(stellarium Core Concurrent Declarative Gui Network OpenGL
SET_TARGET_PROPERTIES(stellarium PROPERTIES LINK_FLAGS " -framework Cocoa - Script Widgets)
framework OpenGL") IF(ENABLE_SOUND)
QT5_USE_MODULES(stellarium Multimedia)
ENDIF()
IF(APPLE)
SET_TARGET_PROPERTIES(stellarium PROPERTIES LINK_FLAGS " -framework Cocoa
-framework OpenGL")
ENDIF() ENDIF()
ENDIF() ENDIF()
ADD_DEPENDENCIES(stellarium AllStaticPlugins) ADD_DEPENDENCIES(stellarium AllStaticPlugins)
INSTALL(TARGETS stellarium DESTINATION bin) INSTALL(TARGETS stellarium DESTINATION bin)
########################################################################### ################## ########################################################################### ##################
################################## Build unit tests ####################### ################## ################################## Build unit tests ####################### ##################
########################################################################### ################## ########################################################################### ##################
SET(extLinkerOptionTest ${QT_LIBRARIES} ${QT_QTTEST_LIBRARY} ${OPENGL_LIBRA RIES} ${ICONV_LIBRARIES} ${INTL_LIBRARIES} ${ZLIB_LIBRARIES}) SET(extLinkerOptionTest ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${QT_Q TTEST_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTOPENGL_LIBRARY} ${OPENGL_LIBRARIE S} ${ZLIB_LIBRARIES})
# Custom target used to build all tests at once # Custom target used to build all tests at once
ADD_CUSTOM_TARGET(buildTests) ADD_CUSTOM_TARGET(buildTests)
SET(tests_testDates_SRCS SET(tests_testDates_SRCS
core/StelUtils.cpp tests/testDates.hpp
tests/testDates.cpp
core/StelUtils.hpp core/StelUtils.hpp
tests/testDates.cpp) core/StelUtils.cpp)
ADD_EXECUTABLE(testDates EXCLUDE_FROM_ALL ${tests_testDates_SRCS}) ADD_EXECUTABLE(testDates EXCLUDE_FROM_ALL ${tests_testDates_SRCS})
QT5_USE_MODULES(testDates Core Gui Widgets Script Declarative Test)
TARGET_LINK_LIBRARIES(testDates ${extLinkerOptionTest}) TARGET_LINK_LIBRARIES(testDates ${extLinkerOptionTest})
ADD_DEPENDENCIES(buildTests testDates) ADD_DEPENDENCIES(buildTests testDates)
SET(tests_testStelFileMgr_SRCS SET(tests_testStelFileMgr_SRCS
core/StelFileMgr.cpp tests/testStelFileMgr.hpp
tests/testStelFileMgr.cpp
core/StelFileMgr.hpp core/StelFileMgr.hpp
tests/testStelFileMgr.cpp) core/StelFileMgr.cpp)
ADD_EXECUTABLE(testStelFileMgr EXCLUDE_FROM_ALL ${tests_testStelFileMgr_SRC S}) ADD_EXECUTABLE(testStelFileMgr EXCLUDE_FROM_ALL ${tests_testStelFileMgr_SRC S})
QT5_USE_MODULES(testStelFileMgr Core Gui Widgets Script Declarative Test)
TARGET_LINK_LIBRARIES(testStelFileMgr ${extLinkerOptionTest}) TARGET_LINK_LIBRARIES(testStelFileMgr ${extLinkerOptionTest})
ADD_DEPENDENCIES(buildTests testStelFileMgr) ADD_DEPENDENCIES(buildTests testStelFileMgr)
SET(tests_testStelSphereGeometry_SRCS SET(tests_testStelSphereGeometry_SRCS
tests/testStelSphereGeometry.hpp tests/testStelSphereGeometry.hpp
tests/testStelSphereGeometry.cpp tests/testStelSphereGeometry.cpp
core/StelSphereGeometry.hpp core/StelSphereGeometry.hpp
core/StelSphereGeometry.cpp core/StelSphereGeometry.cpp
core/StelVertexArray.hpp
core/StelVertexArray.cpp
core/OctahedronPolygon.hpp core/OctahedronPolygon.hpp
core/OctahedronPolygon.cpp core/OctahedronPolygon.cpp
core/StelJsonParser.hpp core/StelJsonParser.hpp
core/StelJsonParser.cpp core/StelJsonParser.cpp
core/StelUtils.cpp
core/StelUtils.hpp core/StelUtils.hpp
core/StelProjector.cpp core/StelUtils.cpp
core/StelProjector.hpp core/StelProjector.hpp
core/StelTranslator.cpp core/StelProjector.cpp
core/StelFileMgr.hpp
core/StelFileMgr.cpp
core/StelTranslator.hpp core/StelTranslator.hpp
core/StelTranslator.cpp
${glues_lib_SRCS}) ${glues_lib_SRCS})
ADD_EXECUTABLE(testStelSphereGeometry EXCLUDE_FROM_ALL ${tests_testStelSphe reGeometry_SRCS}) ADD_EXECUTABLE(testStelSphereGeometry EXCLUDE_FROM_ALL ${tests_testStelSphe reGeometry_SRCS})
TARGET_LINK_LIBRARIES(testStelSphereGeometry ${extLinkerOptionTest} ${QT_QT QT5_USE_MODULES(testStelSphereGeometry Core Gui OpenGL Test)
OPENGL_LIBRARY}) TARGET_LINK_LIBRARIES(testStelSphereGeometry ${extLinkerOptionTest})
ADD_DEPENDENCIES(buildTests testStelSphereGeometry) ADD_DEPENDENCIES(buildTests testStelSphereGeometry)
SET(tests_testStelSphericalIndex_SRCS #SET(tests_testStelSphericalIndex_SRCS
tests/testStelSphericalIndex.hpp # tests/testStelSphericalIndex.hpp
tests/testStelSphericalIndex.cpp # tests/testStelSphericalIndex.cpp
core/StelSphericalIndex.hpp # core/StelSphericalIndex.hpp
core/StelSphericalIndex.cpp # core/StelSphericalIndex.cpp
core/StelSphereGeometry.hpp # core/StelSphereGeometry.hpp
core/StelSphereGeometry.cpp # core/StelSphereGeometry.cpp
core/OctahedronPolygon.hpp # core/StelVertexArray.hpp
core/OctahedronPolygon.cpp # core/StelVertexArray.cpp
core/StelJsonParser.hpp # core/OctahedronPolygon.hpp
core/StelJsonParser.cpp # core/OctahedronPolygon.cpp
core/StelUtils.cpp # core/StelJsonParser.hpp
core/StelUtils.hpp # core/StelJsonParser.cpp
core/StelProjector.cpp # core/StelUtils.cpp
core/StelProjector.hpp # core/StelUtils.hpp
core/StelTranslator.cpp # core/StelProjector.cpp
core/StelTranslator.hpp # core/StelProjector.hpp
${glues_lib_SRCS}) # core/StelTranslator.cpp
ADD_EXECUTABLE(testStelSphericalIndex EXCLUDE_FROM_ALL ${tests_testStelSphe # core/StelTranslator.hpp
ricalIndex_SRCS}) # ${glues_lib_SRCS})
TARGET_LINK_LIBRARIES(testStelSphericalIndex ${extLinkerOptionTest} ${QT_QT #ADD_EXECUTABLE(testStelSphericalIndex EXCLUDE_FROM_ALL ${tests_testStelSph
OPENGL_LIBRARY}) ericalIndex_SRCS})
ADD_DEPENDENCIES(buildTests testStelSphericalIndex) #QT5_USE_MODULES(testStelSphericalIndex Core Gui Widgets OpenGL Script Decl
arative Test)
#TARGET_LINK_LIBRARIES(testStelSphericalIndex ${extLinkerOptionTest})
#ADD_DEPENDENCIES(buildTests testStelSphericalIndex)
SET(tests_testStelJsonParser_SRCS SET(tests_testStelJsonParser_SRCS
tests/testStelJsonParser.hpp tests/testStelJsonParser.hpp
tests/testStelJsonParser.cpp tests/testStelJsonParser.cpp
core/StelJsonParser.hpp core/StelJsonParser.hpp
core/StelJsonParser.cpp) core/StelJsonParser.cpp)
ADD_EXECUTABLE(testStelJsonParser EXCLUDE_FROM_ALL ${tests_testStelJsonPars er_SRCS}) ADD_EXECUTABLE(testStelJsonParser EXCLUDE_FROM_ALL ${tests_testStelJsonPars er_SRCS})
QT5_USE_MODULES(testStelJsonParser Core Gui Widgets Script Declarative Test )
TARGET_LINK_LIBRARIES(testStelJsonParser ${extLinkerOptionTest}) TARGET_LINK_LIBRARIES(testStelJsonParser ${extLinkerOptionTest})
ADD_DEPENDENCIES(buildTests testStelJsonParser) ADD_DEPENDENCIES(buildTests testStelJsonParser)
SET(tests_testStelVertexBuffer_SRCS SET(tests_testStelVertexArray_SRCS
${glues_lib_SRCS} tests/testStelVertexArray.hpp
tests/testStelVertexBuffer.hpp tests/testStelVertexArray.cpp
tests/testStelVertexBuffer.cpp core/StelVertexArray.hpp)
core/StelFileMgr.cpp ADD_EXECUTABLE(testStelVertexArray EXCLUDE_FROM_ALL ${tests_testStelVertexA
core/StelSphereGeometry.cpp rray_SRCS})
core/StelSphereGeometry.hpp QT5_USE_MODULES(testStelVertexArray Core Gui Test OpenGL)
core/StelProjector.cpp TARGET_LINK_LIBRARIES(testStelVertexArray ${extLinkerOptionTest})
core/StelProjector.hpp ADD_DEPENDENCIES(buildTests testStelVertexArray)
core/OctahedronPolygon.cpp
core/OctahedronPolygon.hpp
core/StelJsonParser.cpp
core/StelJsonParser.hpp
core/StelUtils.cpp
core/StelUtils.hpp
core/StelTranslator.cpp
core/StelTranslator.hpp
core/renderer/StelVertexBuffer.hpp
core/renderer/StelVertexBufferBackend.hpp
core/renderer/StelGLUtilityFunctions.cpp
core/renderer/StelGLSLShader.hpp
core/renderer/StelQGLGLSLShader.cpp
core/renderer/StelQGLGLSLShader.hpp
core/renderer/StelQGLArrayVertexBufferBackend.cpp
core/renderer/StelQGLArrayVertexBufferBackend.hpp
core/renderer/StelQGL2ArrayVertexBufferBackend.cpp
core/renderer/StelQGL2ArrayVertexBufferBackend.hpp)
ADD_EXECUTABLE(testStelVertexBuffer EXCLUDE_FROM_ALL ${tests_testStelVertex
Buffer_SRCS})
TARGET_LINK_LIBRARIES(testStelVertexBuffer ${extLinkerOptionTest})
ADD_DEPENDENCIES(buildTests testStelVertexBuffer)
SET(tests_testDeltaT_SRCS SET(tests_testDeltaT_SRCS
tests/testDeltaT.hpp tests/testDeltaT.hpp
tests/testDeltaT.cpp tests/testDeltaT.cpp
core/StelUtils.cpp core/StelUtils.hpp
core/StelUtils.hpp) core/StelUtils.cpp)
ADD_EXECUTABLE(testDeltaT EXCLUDE_FROM_ALL ${tests_testDeltaT_SRCS}) ADD_EXECUTABLE(testDeltaT EXCLUDE_FROM_ALL ${tests_testDeltaT_SRCS})
QT5_USE_MODULES(testDeltaT Core Gui Widgets Script Declarative Test)
TARGET_LINK_LIBRARIES(testDeltaT ${extLinkerOptionTest}) TARGET_LINK_LIBRARIES(testDeltaT ${extLinkerOptionTest})
ADD_DEPENDENCIES(buildTests testDeltaT) ADD_DEPENDENCIES(buildTests testDeltaT)
SET(tests_testConversions_SRCS SET(tests_testConversions_SRCS
core/StelUtils.cpp
core/StelUtils.hpp
tests/testConversions.hpp tests/testConversions.hpp
tests/testConversions.cpp) tests/testConversions.cpp
core/StelUtils.hpp
core/StelUtils.cpp)
ADD_EXECUTABLE(testConversions EXCLUDE_FROM_ALL ${tests_testConversions_SRC S}) ADD_EXECUTABLE(testConversions EXCLUDE_FROM_ALL ${tests_testConversions_SRC S})
QT5_USE_MODULES(testConversions Core Gui Widgets Script Declarative Test)
TARGET_LINK_LIBRARIES(testConversions ${extLinkerOptionTest}) TARGET_LINK_LIBRARIES(testConversions ${extLinkerOptionTest})
ADD_DEPENDENCIES(buildTests testConversions) ADD_DEPENDENCIES(buildTests testConversions)
######SET(extLinkerOption ${QT_LIBRARIES} ${OPENGL_LIBRARIES} ${ICONV_LIBRA
RIES} ${INTL_LIBRARIES} ${ZLIB_LIBRARIES})
ADD_CUSTOM_TARGET(tests COMMENT "Run the Stellarium unit tests") ADD_CUSTOM_TARGET(tests COMMENT "Run the Stellarium unit tests")
ADD_CUSTOM_COMMAND(TARGET tests POST_BUILD COMMAND ./testDates WORKING_DIRE CTORY ${CMAKE_BINARY_DIR}/src/) ADD_CUSTOM_COMMAND(TARGET tests POST_BUILD COMMAND ./testDates WORKING_DIRE CTORY ${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 ./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 ./testStelSphereGeometry WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/src/)
ADD_CUSTOM_COMMAND(TARGET tests POST_BUILD COMMAND ./testStelSphericalIndex #ADD_CUSTOM_COMMAND(TARGET tests POST_BUILD COMMAND ./testStelSphericalInde
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/src/) x WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/src/)
ADD_CUSTOM_COMMAND(TARGET tests POST_BUILD COMMAND ./testStelVertexBuffer W #ADD_CUSTOM_COMMAND(TARGET tests POST_BUILD COMMAND ./testStelVertexBuffer
ORKING_DIRECTORY ${CMAKE_BINARY_DIR}/src/) 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 ./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_CUSTOM_COMMAND(TARGET tests POST_BUILD COMMAND ./testDeltaT WORKING_DIR ECTORY ${CMAKE_BINARY_DIR}/src/) ADD_CUSTOM_COMMAND(TARGET tests POST_BUILD COMMAND ./testDeltaT WORKING_DIR ECTORY ${CMAKE_BINARY_DIR}/src/)
ADD_CUSTOM_COMMAND(TARGET tests POST_BUILD COMMAND ./testConversions WORKIN G_DIRECTORY ${CMAKE_BINARY_DIR}/src/) ADD_CUSTOM_COMMAND(TARGET tests POST_BUILD COMMAND ./testConversions WORKIN G_DIRECTORY ${CMAKE_BINARY_DIR}/src/)
ADD_DEPENDENCIES(tests buildTests) ADD_DEPENDENCIES(tests buildTests)
 End of changes. 63 change blocks. 
415 lines changed or deleted 202 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/