INCLUDE_DIRECTORIES( . gui ${CMAKE_BINARY_DIR}/plugins/Quasars/src ${CMAKE_BINARY_DIR}/plugins/Quasars/src/gui ) LINK_DIRECTORIES(${BUILD_DIR}/src) SET(Quasars_SRCS Quasars.hpp Quasars.cpp Quasar.hpp Quasar.cpp gui/QuasarsDialog.hpp gui/QuasarsDialog.cpp ) SET(QuasarsDialog_UIS gui/quasarsDialog.ui ) QT5_WRAP_UI(QuasarsDialog_UIS_H ${QuasarsDialog_UIS}) SET(Quasars_RES ../resources/Quasars.qrc) QT5_ADD_RESOURCES(Quasars_RES_CXX ${Quasars_RES}) SET(extLinkerOption ${JPEG_LIBRARIES} ${PNG_LIBRARIES} ${OPENGL_LIBRARIES}) ADD_LIBRARY(Quasars-static STATIC ${Quasars_SRCS} ${Quasars_RES_CXX} ${QuasarsDialog_UIS_H}) QT5_USE_MODULES(Quasars-static Core Declarative Network) SET_TARGET_PROPERTIES(Quasars-static PROPERTIES OUTPUT_NAME "Quasars") TARGET_LINK_LIBRARIES(Quasars-static ${extLinkerOption}) SET_TARGET_PROPERTIES(Quasars-static PROPERTIES COMPILE_FLAGS "-DQT_STATICPLUGIN") ADD_DEPENDENCIES(AllStaticPlugins Quasars-static)