-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
-
Qt Creator 9.0.0-rc1
-
None
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%%
)
- relates to
-
QTCREATORBUG-28904 New QML files added to Qt Quick project aren't added to CMakeLists.txt
-
- Reported
-
-
QTCREATORBUG-26006 Files are not automatically added to the CMakeLists.txt file of the CMake project
-
- Open
-
-
QTCREATORBUG-27213 Research add class functionality and if it could be added to CMakeList.txt semiautomatically
-
- Reported
-