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 ${OPENGL_LIBRARIES}) SET(SimpleDrawLine_Qt_Libraries Qt5::Core Qt5::Gui)
############### For building the dynamic library ###################### ############### For building the dynamic library ######################
IF(BUILD_DYNAMIC_PLUGIN) 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 "-unde fined dynamic_lookup" SUFFIX ".dylib") SET_TARGET_PROPERTIES(SimpleDrawLine PROPERTIES LINK_FLAGS "-unde fined dynamic_lookup" SUFFIX ".dylib")
ENDIF() ENDIF()
IF(WIN32) IF(WIN32)
SET_TARGET_PROPERTIES(SimpleDrawLine PROPERTIES LINK_FLAGS "-enab le-runtime-pseudo-reloc -Wl,--allow-multiple-definition" ) SET_TARGET_PROPERTIES(SimpleDrawLine PROPERTIES LINK_FLAGS "-enab le-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} ${SimpleDrawLine_Qt_L ibraries})
INSTALL(TARGETS SimpleDrawLine DESTINATION "modules/SimpleDrawLine") INSTALL(TARGETS SimpleDrawLine DESTINATION "modules/SimpleDrawLine")
ELSE() ELSE()
############### For building the static library ###################### ############### For building the static library ######################
ADD_LIBRARY(SimpleDrawLine-static STATIC ${SimpleDrawLine_SRCS}) ADD_LIBRARY(SimpleDrawLine-static STATIC ${SimpleDrawLine_SRCS})
# The library target "SimpleDrawLine-static" has a default OUTPUT_NAME of "SimpleDrawLine-static", so change it. # The library target "SimpleDrawLine-static" has a default OUTPUT_NAME of "SimpleDrawLine-static", so change it.
QT5_USE_MODULES(SimpleDrawLine-static Core OpenGL)
SET_TARGET_PROPERTIES(SimpleDrawLine-static PROPERTIES OUTPUT_NAME "Si mpleDrawLine") SET_TARGET_PROPERTIES(SimpleDrawLine-static PROPERTIES OUTPUT_NAME "Si mpleDrawLine")
TARGET_LINK_LIBRARIES(SimpleDrawLine-static ${extLinkerOption}) TARGET_LINK_LIBRARIES(SimpleDrawLine-static ${StelMain} ${SimpleDrawLi ne_Qt_Libraries})
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. 5 change blocks. 
5 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/