CMakeLists.txt   CMakeLists.txt 
INCLUDE_DIRECTORIES(.) INCLUDE_DIRECTORIES(.)
LINK_DIRECTORIES(${BUILD_DIR}/src) LINK_DIRECTORIES(${BUILD_DIR}/src)
SET(SimpleDrawLine_SRCS SET(SimpleDrawLine_SRCS
SimpleDrawLine.hpp SimpleDrawLine.hpp
SimpleDrawLine.cpp) SimpleDrawLine.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 ###################### ############### For building the dynamic library ######################
IF(BUILD_DYNAMIC_PLUGINS) IF(BUILD_DYNAMIC_PLUGIN)
ADD_LIBRARY(SimpleDrawLine MODULE ${SimpleDrawLine_SRCS}) ADD_LIBRARY(SimpleDrawLine MODULE ${SimpleDrawLine_SRCS})
QT5_USE_MODULES(SimpleDrawLine-static Core OpenGL)
IF(APPLE) IF(APPLE)
FIND_LIBRARY(OPENGL_LIBRARY OpenGL) FIND_LIBRARY(OPENGL_LIBRARY OpenGL)
MARK_AS_ADVANCED(OPENGL_LIBRARY) MARK_AS_ADVANCED(OPENGL_LIBRARY)
SET_TARGET_PROPERTIES(SimpleDrawLine PROPERTIES LINK_FLAGS " -undefined dynamic_lookup" SUFFIX ".dylib") SET_TARGET_PROPERTIES(SimpleDrawLine PROPERTIES LINK_FLAGS " -undefined dynamic_lookup" SUFFIX ".dylib")
ENDIF() ENDIF()
IF(WIN32) IF(WIN32)
SET_TARGET_PROPERTIES(SimpleDrawLine PROPERTIES LINK_FLAGS " -enable-runtime-pseudo-reloc -Wl,--allow-multiple-definition" ) SET_TARGET_PROPERTIES(SimpleDrawLine PROPERTIES LINK_FLAGS " -enable-runtime-pseudo-reloc -Wl,--allow-multiple-definition" )
SET(StelMain stelMain) SET(StelMain stelMain)
ELSE(WIN32) ELSE(WIN32)
SET(StelMain ) SET(StelMain )
ENDIF(WIN32) ENDIF(WIN32)
TARGET_LINK_LIBRARIES(SimpleDrawLine ${StelMain} ${extLinkerOption}) TARGET_LINK_LIBRARIES(SimpleDrawLine ${StelMain} ${extLinkerOption})
INSTALL(TARGETS SimpleDrawLine DESTINATION "modules/SimpleDrawLine") INSTALL(TARGETS SimpleDrawLine DESTINATION "modules/SimpleDrawLine")
ENDIF() ELSE()
############### For building the static library ###################### ############### For building the static library ######################
IF(BUILD_STATIC_PLUGINS)
ADD_LIBRARY(SimpleDrawLine-static STATIC ${SimpleDrawLine_SRCS}) ADD_LIBRARY(SimpleDrawLine-static STATIC ${SimpleDrawLine_SRCS})
# The library target "SimpleDrawLine-static" has a default OUTPUT_NA ME of "SimpleDrawLine-static", so change it. # The library target "SimpleDrawLine-static" has a default OUTPUT_NA ME of "SimpleDrawLine-static", so change it.
QT5_USE_MODULES(SimpleDrawLine-static Core OpenGL)
SET_TARGET_PROPERTIES(SimpleDrawLine-static PROPERTIES OUTPUT_NAME " SimpleDrawLine") SET_TARGET_PROPERTIES(SimpleDrawLine-static PROPERTIES OUTPUT_NAME " SimpleDrawLine")
TARGET_LINK_LIBRARIES(SimpleDrawLine-static ${extLinkerOption}) TARGET_LINK_LIBRARIES(SimpleDrawLine-static ${extLinkerOption})
SET_TARGET_PROPERTIES(SimpleDrawLine-static PROPERTIES COMPILE_FLAGS "-DQT_STATICPLUGIN") SET_TARGET_PROPERTIES(SimpleDrawLine-static PROPERTIES COMPILE_FLAGS "-DQT_STATICPLUGIN")
ADD_DEPENDENCIES(AllStaticPlugins SimpleDrawLine-static) ADD_DEPENDENCIES(AllStaticPlugins SimpleDrawLine-static)
ENDIF() ENDIF()
 End of changes. 6 change blocks. 
5 lines changed or deleted 5 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/