CMakeLists.txt   CMakeLists.txt 
INCLUDE_DIRECTORIES(.) INCLUDE_DIRECTORIES(.)
LINK_DIRECTORIES(${BUILD_DIR}/src) LINK_DIRECTORIES(${BUILD_DIR}/src)
SET(HelloStelModule_SRCS SET(HelloStelModule_SRCS
HelloStelModule.hpp HelloStelModule.hpp
HelloStelModule.cpp) HelloStelModule.cpp)
SET(extLinkerOption ${QT_LIBRARIES} ${JPEG_LIBRARIES} ${PNG_LIBRARIES} ${OP ENGL_LIBRARIES} ${ICONV_LIBRARIES} ${INTL_LIBRARIES}) SET(extLinkerOption ${OPENGL_LIBRARIES})
############### For building the dynamic library ###################### ADD_LIBRARY(HelloStelModule-static STATIC ${HelloStelModule_SRCS})
IF(BUILD_DYNAMIC_PLUGINS) # The library target "HelloStelModule-static" has a default OUTPUT_NAME of
ADD_LIBRARY(HelloStelModule MODULE ${HelloStelModule_SRCS}) "HelloStelModule-static", so change it.
IF(APPLE) QT5_USE_MODULES(HelloStelModule-static Core Gui)
FIND_LIBRARY(OPENGL_LIBRARY OpenGL) SET_TARGET_PROPERTIES(HelloStelModule-static PROPERTIES OUTPUT_NAME "HelloS
MARK_AS_ADVANCED(OPENGL_LIBRARY) telModule")
SET_TARGET_PROPERTIES(HelloStelModule PROPERTIES LINK_FLAGS TARGET_LINK_LIBRARIES(HelloStelModule-static ${extLinkerOption})
"-undefined dynamic_lookup" SUFFIX ".dylib") SET_TARGET_PROPERTIES(HelloStelModule-static PROPERTIES COMPILE_FLAGS "-DQT
ENDIF() _STATICPLUGIN")
ADD_DEPENDENCIES(AllStaticPlugins HelloStelModule-static)
IF(WIN32)
SET_TARGET_PROPERTIES(HelloStelModule PROPERTIES LINK_FLAGS
"-enable-runtime-pseudo-reloc -Wl,--allow-multiple-definition" )
SET(StelMain stelMain)
ELSE(WIN32)
SET(StelMain )
ENDIF(WIN32)
TARGET_LINK_LIBRARIES(HelloStelModule ${StelMain} ${extLinkerOption}
)
INSTALL(TARGETS HelloStelModule DESTINATION "modules/HelloStelModule
")
ENDIF()
############### For building the static library ######################
IF(BUILD_STATIC_PLUGINS)
ADD_LIBRARY(HelloStelModule-static STATIC ${HelloStelModule_SRCS})
# The library target "HelloStelModule-static" has a default OUTPUT_N
AME of "HelloStelModule-static", so change it.
SET_TARGET_PROPERTIES(HelloStelModule-static PROPERTIES OUTPUT_NAME
"HelloStelModule")
TARGET_LINK_LIBRARIES(HelloStelModule-static ${extLinkerOption})
SET_TARGET_PROPERTIES(HelloStelModule-static PROPERTIES COMPILE_FLAG
S "-DQT_STATICPLUGIN")
ADD_DEPENDENCIES(AllStaticPlugins HelloStelModule-static)
ENDIF()
 End of changes. 2 change blocks. 
1 lines changed or deleted 1 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/