Qt resources files with CMake and AUTORCC

后端 未结 2 757
隐瞒了意图╮
隐瞒了意图╮ 2021-02-02 13:11

Solution:

Add resource files in the add_executable() statement

Problem

(not in the add_library())

Fa

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-02 14:03

    I think you need to link qrc_resources generated file.

    I suppose you know the next info:

    http://www.cmake.org/cmake/help/v3.0/manual/cmake-qt.7.html

    Where you can see the next line:

    add_executable(myexe main.cpp resource_file.qrc)
    

    More info:

    http://www.cmake.org/cmake/help/v3.0/prop_tgt/AUTORCC.html

提交回复
热议问题