- 
    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
 
-