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(extLinkerOption ${OPENGL_LIBRARIES})
############### 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) 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 " SET_TARGET_PROPERTIES(SimpleDrawLine PROPERTIES LINK_FLAGS "-unde
-undefined dynamic_lookup" SUFFIX ".dylib") fined dynamic_lookup" SUFFIX ".dylib")
ENDIF() ENDIF()
IF(WIN32) IF(WIN32)
SET_TARGET_PROPERTIES(SimpleDrawLine PROPERTIES LINK_FLAGS " SET_TARGET_PROPERTIES(SimpleDrawLine PROPERTIES LINK_FLAGS "-enab
-enable-runtime-pseudo-reloc -Wl,--allow-multiple-definition" ) 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} ${extLinkerOption})
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_NA # The library target "SimpleDrawLine-static" has a default OUTPUT_NAME
ME of "SimpleDrawLine-static", so change it. of "SimpleDrawLine-static", so change it.
QT5_USE_MODULES(SimpleDrawLine-static Core OpenGL) QT5_USE_MODULES(SimpleDrawLine-static Core OpenGL)
SET_TARGET_PROPERTIES(SimpleDrawLine-static PROPERTIES OUTPUT_NAME " SET_TARGET_PROPERTIES(SimpleDrawLine-static PROPERTIES OUTPUT_NAME "Si
SimpleDrawLine") mpleDrawLine")
TARGET_LINK_LIBRARIES(SimpleDrawLine-static ${extLinkerOption}) TARGET_LINK_LIBRARIES(SimpleDrawLine-static ${extLinkerOption})
SET_TARGET_PROPERTIES(SimpleDrawLine-static PROPERTIES COMPILE_FLAGS SET_TARGET_PROPERTIES(SimpleDrawLine-static PROPERTIES COMPILE_FLAGS "
"-DQT_STATICPLUGIN") -DQT_STATICPLUGIN")
ADD_DEPENDENCIES(AllStaticPlugins SimpleDrawLine-static) ADD_DEPENDENCIES(AllStaticPlugins SimpleDrawLine-static)
ENDIF() ENDIF()
 End of changes. 4 change blocks. 
30 lines changed or deleted 31 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/