- 
    Task 
- 
    Resolution: Done
- 
    P4: Low 
- 
    None
- 
    None
- 
    None
- 
        11435ebedbff4ded01a9196d9ee9e38a98d5403a (qt-creator/qt-creator/master)
Most of our CMakeLists.txt in Qt examples are formatted like
qt_add_executable(chip
    chip.cpp chip.h
    main.cpp
    mainwindow.cpp mainwindow.h
    view.cpp view.h
)
set_target_properties(chip PROPERTIES
    WIN32_EXECUTABLE TRUE
    MACOSX_BUNDLE TRUE
)
target_link_libraries(chip PUBLIC
    Qt::Core
    Qt::Gui
    Qt::Widgets
)
However, using the internal indenter in Qt Creator (e.g. by Edit > Advanced > Auto-Indent Section) will format this to
qt_add_executable(chip
    chip.cpp chip.h
    main.cpp
    mainwindow.cpp mainwindow.h
    view.cpp view.h
    )
set_target_properties(chip PROPERTIES
    WIN32_EXECUTABLE TRUE
    MACOSX_BUNDLE TRUE
    )
target_link_libraries(chip PUBLIC
    Qt::Core
    Qt::Gui
    Qt::Widgets
    )
IMO the style of not indenting the closing parenthesis is easier to read. Can Qt Creator adapt this?
- relates to
- 
                    QTCREATORBUG-19417 Improve indentation in CMake files -         
- Reported
 
-         
| For Gerrit Dashboard: QTCREATORBUG-26700 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 385226,2 | CMake: indent single closing ) one level down | master | qt-creator/qt-creator | Status: ABANDONED | 0 | 0 | 
| 385283,2 | CMake: indent closing ) one level down | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |