Using Cmake with Qt Creator

前端 未结 5 976
余生分开走
余生分开走 2020-12-15 18:19

I would like to use Qt creator and Cmake together (please, don\'t ask me about my motivation, accept this as a given.)

I successfully set u

5条回答
  •  一整个雨季
    2020-12-15 18:31

    When you add new files in QtCreator using the "New File or Project..." dialog it only creates the files on disk, it doesn't automatically add the files to the CMakeLists.txt. You need to do this by hand by editing the CMakeLists.txt file.

    The next time you build the project, CMake will be re-run, and QtCreator will pick up the new files and show them in the project browser.

提交回复
热议问题