INCLUDE_DIRECTORIES( ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/plugins/FOV/src ${CMAKE_BINARY_DIR}/plugins/FOV/src/gui . gui) LINK_DIRECTORIES(${BUILD_DIR}/src) SET(FOV_SRCS FOV.hpp FOV.cpp gui/FOVWindow.hpp gui/FOVWindow.cpp ) SET(FOV_UIS gui/fovWindow.ui ) QT5_WRAP_UI(FOV_UIS_H ${FOV_UIS}) SET(extLinkerOption ${OPENGL_LIBRARIES}) ADD_LIBRARY(FOV-static STATIC ${FOV_SRCS} ${FOV_RES_CXX} ${FOV_UIS_H}) QT5_USE_MODULES(FOV-static Core Declarative Network) SET_TARGET_PROPERTIES(FOV-static PROPERTIES OUTPUT_NAME "FOV") TARGET_LINK_LIBRARIES(FOV-static ${extLinkerOption}) SET_TARGET_PROPERTIES(FOV-static PROPERTIES COMPILE_FLAGS "-DQT_STATICPLUGIN") ADD_DEPENDENCIES(AllStaticPlugins FOV-static)