Add switch to select between Qt4 and Qt5
This commit is contained in:
@@ -34,12 +34,17 @@ SET(ImageGui_RES_SRCS
|
||||
Resources/Image.qrc
|
||||
)
|
||||
|
||||
qt4_add_resources(ImageGui_QRC_SRCS ${ImageGui_RES_SRCS})
|
||||
|
||||
set(ImageGui_UIC_SRCS
|
||||
ImageOrientationDialog.ui
|
||||
)
|
||||
qt4_wrap_ui(ImageGui_UIC_HDRS ${ImageGui_UIC_SRCS})
|
||||
|
||||
if(BUILD_QT5)
|
||||
qt5_add_resources(ImageGui_QRC_SRCS ${ImageGui_RES_SRCS})
|
||||
qt5_wrap_ui(ImageGui_UIC_HDRS ${ImageGui_UIC_SRCS})
|
||||
else()
|
||||
qt4_add_resources(ImageGui_QRC_SRCS ${ImageGui_RES_SRCS})
|
||||
qt4_wrap_ui(ImageGui_UIC_HDRS ${ImageGui_UIC_SRCS})
|
||||
endif()
|
||||
|
||||
SET(ImageGui_SRCS
|
||||
# ${ImageGui_MOC_SRCS}
|
||||
|
||||
Reference in New Issue
Block a user