more simplification of the dependency handling

This commit is contained in:
Abhijit Kundu
2014-12-02 21:41:47 -05:00
parent c0b092d796
commit 5ca603a9a9
4 changed files with 12 additions and 90 deletions

View File

@@ -9,11 +9,7 @@ SET(KIT_resources
demo.qrc
)
IF(QT5_FOUND)
QT5_ADD_RESOURCES(KIT_QRC_SRCS ${KIT_resources})
ELSE()
QT4_ADD_RESOURCES(KIT_QRC_SRCS ${KIT_resources})
ENDIF()
QT5_ADD_RESOURCES(KIT_QRC_SRCS ${KIT_resources})
ADD_EXECUTABLE(${example_name} ${KIT_SRCS} ${KIT_QRC_SRCS})
TARGET_LINK_LIBRARIES(${example_name} ${PROJECT_NAME})