CMakeLists.txt   CMakeLists.txt 
skipping to change at line 23 skipping to change at line 23
Quasar.hpp Quasar.hpp
Quasar.cpp Quasar.cpp
gui/QuasarsDialog.hpp gui/QuasarsDialog.hpp
gui/QuasarsDialog.cpp gui/QuasarsDialog.cpp
) )
SET(QuasarsDialog_UIS SET(QuasarsDialog_UIS
gui/quasarsDialog.ui gui/quasarsDialog.ui
) )
QT4_WRAP_UI(QuasarsDialog_UIS_H ${QuasarsDialog_UIS}) QT5_WRAP_UI(QuasarsDialog_UIS_H ${QuasarsDialog_UIS})
SET(Quasars_RES ../resources/Quasars.qrc) SET(Quasars_RES ../resources/Quasars.qrc)
QT4_ADD_RESOURCES(Quasars_RES_CXX ${Quasars_RES}) QT5_ADD_RESOURCES(Quasars_RES_CXX ${Quasars_RES})
SET(extLinkerOption ${QT_LIBRARIES} ${JPEG_LIBRARIES} ${PNG_LIBRARIES} ${OP ENGL_LIBRARIES} ${ICONV_LIBRARIES} ${INTL_LIBRARIES}) SET(extLinkerOption ${JPEG_LIBRARIES} ${PNG_LIBRARIES} ${OPENGL_LIBRARIES})
############### For building the dynamic library ###################### ADD_LIBRARY(Quasars-static STATIC ${Quasars_SRCS} ${Quasars_RES_CXX} ${Quas
IF(BUILD_DYNAMIC_PLUGINS) arsDialog_UIS_H})
ADD_LIBRARY(Quasars MODULE ${Quasars_SRCS} ${Quasars_RES_CXX} ${Quas QT5_USE_MODULES(Quasars-static Core Declarative Network)
arsDialog_UIS_H}) SET_TARGET_PROPERTIES(Quasars-static PROPERTIES OUTPUT_NAME "Quasars")
IF(APPLE) TARGET_LINK_LIBRARIES(Quasars-static ${extLinkerOption})
FIND_LIBRARY(OPENGL_LIBRARY OpenGL) SET_TARGET_PROPERTIES(Quasars-static PROPERTIES COMPILE_FLAGS "-DQT_STATICP
MARK_AS_ADVANCED(OPENGL_LIBRARY) LUGIN")
SET_TARGET_PROPERTIES(Quasars PROPERTIES LINK_FLAGS "-undefi ADD_DEPENDENCIES(AllStaticPlugins Quasars-static)
ned dynamic_lookup" SUFFIX ".dylib")
ENDIF()
IF(WIN32)
SET_TARGET_PROPERTIES(Quasars PROPERTIES LINK_FLAGS "-Wl,--
enable-runtime-pseudo-reloc -Wl,--allow-multiple-definition" )
SET(StelMain stelMain)
ELSE(WIN32)
SET(StelMain )
ENDIF(WIN32)
TARGET_LINK_LIBRARIES(Quasars ${StelMain} ${extLinkerOption})
INSTALL(TARGETS Quasars DESTINATION "modules/Quasars")
ENDIF()
############### For building the static library ######################
IF(BUILD_STATIC_PLUGINS)
ADD_LIBRARY(Quasars-static STATIC ${Quasars_SRCS} ${Quasars_RES_CXX}
${QuasarsDialog_UIS_H})
SET_TARGET_PROPERTIES(Quasars-static PROPERTIES OUTPUT_NAME "Quasars
")
TARGET_LINK_LIBRARIES(Quasars-static ${extLinkerOption})
SET_TARGET_PROPERTIES(Quasars-static PROPERTIES COMPILE_FLAGS "-DQT_
STATICPLUGIN")
ADD_DEPENDENCIES(AllStaticPlugins Quasars-static)
ENDIF()
 End of changes. 4 change blocks. 
3 lines changed or deleted 3 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/