Details
-
Suggestion
-
Resolution: Fixed
-
P2: Important
-
Qt Creator 9.0.0-rc1
-
None
-
-
d8be2491a (master)
Description
Adding files to cmake projects has been discussed multiple times (e.g. QTCREATORBUG-19962) but the way it is currently handled is cumbersome (and confusing to new users).
My suggestion is to use placeholder comments (similar to AndroidManifest.xml and - I think - also Info.plist files), for instance:
qt_add_executable(camera MANUAL_FINALIZATION main.cpp #%%SOURCE_FILES%% #%%HEADER_FILES%% )
which is then replaced by Qt Creator when adding "MainWindow" class to:
qt_add_executable(camera MANUAL_FINALIZATION main.cpp mainwindow.cpp #%%SOURCE_FILES%% mainwindow.h #%%HEADER_FILES%% )
Attachments
Issue Links
- relates to
-
QTCREATORBUG-26006 Files are not automatically added to the CMakeLists.txt file of the CMake project
-
- Closed
-
-
QTCREATORBUG-28904 New QML files added to Qt Quick project aren't added to CMakeLists.txt
-
- Closed
-
-
QTCREATORBUG-27213 Research add class functionality and if it could be added to CMakeList.txt semiautomatically
-
- Closed
-