1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
SET(example_name demo) SET(KIT_SRCS main.cpp ) SET(KIT_resources demo.qrc ) QT5_ADD_RESOURCES(KIT_QRC_SRCS ${KIT_resources}) ADD_EXECUTABLE(${example_name} ${KIT_SRCS} ${KIT_QRC_SRCS}) TARGET_LINK_LIBRARIES(${example_name} ${PROJECT_NAME})