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)
# Add here all the files which require moc compilation
# that is, all the headers with SIGNAL/SLOTS/PLUGIN_INTERFACE etc..
SET(HelloStelModule_MOC_HDRS
HelloStelModule.hpp)
# After this call, HelloStelModule_MOC_SRCS = moc_HelloStelModule.cxx
QT4_WRAP_CPP(HelloStelModule_MOC_SRCS ${HelloStelModule_MOC_HDRS})
SET(extLinkerOption ${QT_LIBRARIES} ${JPEG_LIBRARIES} ${PNG_LIBRARIES} ${OP ENGL_LIBRARIES} ${ICONV_LIBRARIES} ${INTL_LIBRARIES}) SET(extLinkerOption ${QT_LIBRARIES} ${JPEG_LIBRARIES} ${PNG_LIBRARIES} ${OP ENGL_LIBRARIES} ${ICONV_LIBRARIES} ${INTL_LIBRARIES})
############### For building the dynamic library ###################### ############### For building the dynamic library ######################
IF(BUILD_DYNAMIC_PLUGINS) IF(BUILD_DYNAMIC_PLUGINS)
ADD_LIBRARY(HelloStelModule MODULE ${HelloStelModule_SRCS} ${HelloSt elModule_MOC_SRCS}) ADD_LIBRARY(HelloStelModule MODULE ${HelloStelModule_SRCS})
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(HelloStelModule PROPERTIES LINK_FLAGS "-undefined dynamic_lookup" SUFFIX ".dylib") SET_TARGET_PROPERTIES(HelloStelModule PROPERTIES LINK_FLAGS "-undefined dynamic_lookup" SUFFIX ".dylib")
ENDIF() ENDIF()
IF(WIN32) IF(WIN32)
SET_TARGET_PROPERTIES(HelloStelModule PROPERTIES LINK_FLAGS "-enable-runtime-pseudo-reloc -Wl,--allow-multiple-definition" ) SET_TARGET_PROPERTIES(HelloStelModule 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(HelloStelModule ${StelMain} ${extLinkerOption} ) TARGET_LINK_LIBRARIES(HelloStelModule ${StelMain} ${extLinkerOption} )
INSTALL(TARGETS HelloStelModule DESTINATION "modules/HelloStelModule ") INSTALL(TARGETS HelloStelModule DESTINATION "modules/HelloStelModule ")
ENDIF() ENDIF()
############### For building the static library ###################### ############### For building the static library ######################
IF(BUILD_STATIC_PLUGINS) IF(BUILD_STATIC_PLUGINS)
ADD_LIBRARY(HelloStelModule-static STATIC ${HelloStelModule_SRCS} ${ HelloStelModule_MOC_SRCS}) ADD_LIBRARY(HelloStelModule-static STATIC ${HelloStelModule_SRCS})
# The library target "HelloStelModule-static" has a default OUTPUT_N AME of "HelloStelModule-static", so change it. # 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") SET_TARGET_PROPERTIES(HelloStelModule-static PROPERTIES OUTPUT_NAME "HelloStelModule")
TARGET_LINK_LIBRARIES(HelloStelModule-static ${extLinkerOption}) TARGET_LINK_LIBRARIES(HelloStelModule-static ${extLinkerOption})
SET_TARGET_PROPERTIES(HelloStelModule-static PROPERTIES COMPILE_FLAG S "-DQT_STATICPLUGIN") SET_TARGET_PROPERTIES(HelloStelModule-static PROPERTIES COMPILE_FLAG S "-DQT_STATICPLUGIN")
ADD_DEPENDENCIES(AllStaticPlugins HelloStelModule-static) ADD_DEPENDENCIES(AllStaticPlugins HelloStelModule-static)
ENDIF() ENDIF()
 End of changes. 3 change blocks. 
10 lines changed or deleted 2 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/