CMakeLists.txt   CMakeLists.txt 
skipping to change at line 490 skipping to change at line 490
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 StelMainGrap hicsView.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) 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_SIMPLEDRAWLINE)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/SimpleDrawLine/src/${CMAKE_CFG_INTD
IR}/libSimpleDrawLine.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_SIMPLEDRAWLINE)
ENDIF()
IF (USE_PLUGIN_OBSERVABILITY)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Observability/src/${CMAKE_CFG_INTDI
R}/libObservability.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_OBSERVABILITY)
ENDIF()
IF (USE_PLUGIN_ANGLEMEASURE) ### demo plugins ###
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/AngleMeasure/src/${CMAKE_CFG_INTDIR IF (USE_PLUGIN_HELLOSTELMODULE)
}/libAngleMeasure.a") SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_ANGLEMEASURE) PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/HelloStelModule/src/${CMAKE
ENDIF() _CFG_INTDIR}/libHelloStelModule.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_HELLOSTELMODULE)
IF (USE_PLUGIN_COMPASSMARKS) ENDIF()
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/CompassMarks/src/${CMAKE_CFG_INTDIR IF (USE_PLUGIN_SIMPLEDRAWLINE)
}/libCompassMarks.a") SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_COMPASSMARKS) PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/SimpleDrawLine/src/${CMAKE_
ENDIF() CFG_INTDIR}/libSimpleDrawLine.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_SIMPLEDRAWLINE)
IF (USE_PLUGIN_SATELLITES) ENDIF()
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Satellites/src/${CMAKE_CFG_INTDIR}/ ### work plugins ###
libSatellites.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_SATELLITES) IF (USE_PLUGIN_ANGLEMEASURE)
ENDIF() SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/AngleMeasure/src/${CMAKE_CF
IF (USE_PLUGIN_TELESCOPECONTROL) G_INTDIR}/libAngleMeasure.a")
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_ ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_ANGLEMEASURE)
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/TelescopeControl/src/${CMAKE_CFG_IN ENDIF()
TDIR}/libTelescopeControl.a")
IF(WIN32) IF (USE_PLUGIN_COMPASSMARKS)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_ SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} libwsock32.a) PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/CompassMarks/src/${CMAKE_CF
ENDIF() G_INTDIR}/libCompassMarks.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_TELESCOPECONTROL) ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_COMPASSMARKS)
ENDIF() ENDIF()
IF (USE_PLUGIN_LOGBOOK) IF (USE_PLUGIN_EXOPLANETS)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_ SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/LogBook/src/${CMAKE_CFG_INTDIR}/lib PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Exoplanets/src/${CMAKE_CFG_
LogBook.a") INTDIR}/libExoplanets.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_LOGBOOK) ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_EXOPLANETS)
SET(QT_USE_QTSQL TRUE) ENDIF()
ENDIF()
IF (USE_PLUGIN_LOGBOOK)
IF (USE_PLUGIN_OCULARS) SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_ PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/LogBook/src/${CMAKE_CFG_INT
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Oculars/src/${CMAKE_CFG_INTDIR}/lib DIR}/libLogBook.a")
Oculars.a") ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_LOGBOOK)
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_OCULARS) SET(QT_USE_QTSQL TRUE)
SET(QT_USE_QTSQL TRUE) ENDIF()
ENDIF()
IF (USE_PLUGIN_OBSERVABILITY)
IF (USE_PLUGIN_TEXTUSERINTERFACE) SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_ PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Observability/src/${CMAKE_C
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/TextUserInterface/src/${CMAKE_CFG_I FG_INTDIR}/libObservability.a")
NTDIR}/libTextUserInterface.a") ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_OBSERVABILITY)
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_TEXTUSERINTERFACE) ENDIF()
ENDIF()
IF (USE_PLUGIN_OCULARS)
IF (USE_PLUGIN_SOLARSYSTEMEDITOR) SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_ PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Oculars/src/${CMAKE_CFG_INT
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/SolarSystemEditor/src/${CMAKE_CFG_I DIR}/libOculars.a")
NTDIR}/libSolarSystemEditor.a") ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_OCULARS)
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_SOLARSYSTEMEDITOR) # SET(QT_USE_QTSQL TRUE)
ENDIF() ENDIF()
IF (USE_PLUGIN_TIMEZONECONFIGURATION) IF (USE_PLUGIN_PULSARS)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_ SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/TimeZoneConfiguration/src/${CMAKE_C PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Pulsars/src/${CMAKE_CFG_INT
FG_INTDIR}/libTimeZoneConfiguration.a") DIR}/libPulsars.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_TIMEZONECONFIGURATION) ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_PULSARS)
ENDIF() ENDIF()
IF (USE_PLUGIN_SUPERNOVAE) IF (USE_PLUGIN_QUASARS)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_ SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Supernovae/src/${CMAKE_CFG_INTDIR}/ PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Quasars/src/${CMAKE_CFG_INT
libSupernovae.a") DIR}/libQuasars.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_SUPERNOVAE) ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_QUASARS)
ENDIF() ENDIF()
IF (USE_PLUGIN_QUASARS) IF (USE_PLUGIN_RENDERERSTATISTICS)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_ SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Quasars/src/${CMAKE_CFG_INTDIR}/lib PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/RendererStatistics/src/${CM
Quasars.a") AKE_CFG_INTDIR}/libRendererStatistics.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_QUASARS) ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_RENDERERSTATISTICS)
ENDIF() ENDIF()
IF (USE_PLUGIN_PULSARS) IF (USE_PLUGIN_SATELLITES)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_ SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Pulsars/src/${CMAKE_CFG_INTDIR}/lib PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Satellites/src/${CMAKE_CFG_
Pulsars.a") INTDIR}/libSatellites.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_PULSARS) ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_SATELLITES)
ENDIF() ENDIF()
IF (USE_PLUGIN_EXOPLANETS) IF (USE_PLUGIN_SOLARSYSTEMEDITOR)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_LIB SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
RARIES} "${CMAKE_BINARY_DIR}/plugins/Exoplanets/src/${CMAKE_CFG_INTDIR}/lib PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/SolarSystemEditor/src/${CMA
Exoplanets.a") KE_CFG_INTDIR}/libSolarSystemEditor.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_EXOPLANETS) ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_SOLARSYSTEMEDITOR)
ENDIF() ENDIF()
IF (USE_PLUGIN_SVMT) IF (USE_PLUGIN_SUPERNOVAE)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_ SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
LIBRARIES} ${CMAKE_BINARY_DIR}/plugins/svmt/src/${CMAKE_CFG_INTDIR}/libSVMT PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/Supernovae/src/${CMAKE_CFG_
.a) INTDIR}/libSupernovae.a")
IF(APPLE) ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_SUPERNOVAE)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGIN ENDIF()
S_LIBRARIES} "-framework QtDeclarative")
ELSE() IF (USE_PLUGIN_SVMT)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGIN SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
S_LIBRARIES} ${QT_LIBRARY_DIR}/libQtDeclarative.so) PLUGINS_LIBRARIES} ${CMAKE_BINARY_DIR}/plugins/svmt/src/${CMAKE_CFG_INTDIR}
ENDIF() /libSVMT.a)
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_SVMT) IF(APPLE)
ENDIF() SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM
_STATIC_PLUGINS_LIBRARIES} "-framework QtDeclarative")
IF (USE_PLUGIN_VIRGO) ELSE(APPLE)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_ SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM
LIBRARIES} ${CMAKE_BINARY_DIR}/plugins/VirGO/src/${CMAKE_CFG_INTDIR}/libVir _STATIC_PLUGINS_LIBRARIES} ${QT_LIBRARY_DIR}/libQtDeclarative.so)
GO.a ${CFITSIO_LIBRARIES}) ENDIF(APPLE)
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_VIRGO) ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_SVMT)
ENDIF() ENDIF()
IF (USE_PLUGIN_RENDERERSTATISTICS) IF (USE_PLUGIN_TELESCOPECONTROL)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGIN SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
S_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/RendererStatistics/src/${CMAKE_CF PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/TelescopeControl/src/${CMAK
G_INTDIR}/libRendererStatistics.a") E_CFG_INTDIR}/libTelescopeControl.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_RENDERERSTATISTICS) IF(WIN32)
ENDIF() SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM
_STATIC_PLUGINS_LIBRARIES} libwsock32.a)
ENDIF(WIN32)
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_TELESCOPECONTROL)
ENDIF()
IF (USE_PLUGIN_TEXTUSERINTERFACE)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/TextUserInterface/src/${CMA
KE_CFG_INTDIR}/libTextUserInterface.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_TEXTUSERINTERFACE)
ENDIF()
IF (USE_PLUGIN_TIMEZONECONFIGURATION)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} "${CMAKE_BINARY_DIR}/plugins/TimeZoneConfiguration/src/$
{CMAKE_CFG_INTDIR}/libTimeZoneConfiguration.a")
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_TIMEZONECONFIGURATION)
ENDIF()
IF (USE_PLUGIN_VIRGO)
SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_
PLUGINS_LIBRARIES} ${CMAKE_BINARY_DIR}/plugins/VirGO/src/${CMAKE_CFG_INTDIR
}/libVirGO.a ${CFITSIO_LIBRARIES})
ADD_DEFINITIONS(-DUSE_STATIC_PLUGIN_VIRGO)
ENDIF()
ENDIF() ENDIF()
########################################################################### ################## ########################################################################### ##################
################################ Build main program ####################### ################## ################################ Build main program ####################### ##################
########################################################################### ################## ########################################################################### ##################
SET(extLinkerOption ${QT_LIBRARIES} ${OPENGL_LIBRARIES} ${ICONV_LIBRARIES} ${INTL_LIBRARIES} ${ZLIB_LIBRARIES}) SET(extLinkerOption ${QT_LIBRARIES} ${OPENGL_LIBRARIES} ${ICONV_LIBRARIES} ${INTL_LIBRARIES} ${ZLIB_LIBRARIES})
IF(ENABLE_SCRIPTING) IF(ENABLE_SCRIPTING)
SET(extLinkerOption ${extLinkerOption} ${QT_QTSCRIPT_LIBRARY}) SET(extLinkerOption ${extLinkerOption} ${QT_QTSCRIPT_LIBRARY})
ENDIF() ENDIF()
IF(WIN32) IF(WIN32)
SET(extLinkerOption ${extLinkerOption} libwinmm.a) 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) ENDIF(RC_COMPILER_PATH)
ENDIF(WIN32 AND ENABLE_WINDOWS_EXE_ICON) ENDIF(WIN32 AND ENABLE_WINDOWS_EXE_ICON)
 End of changes. 3 change blocks. 
145 lines changed or deleted 151 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/