@@ -63,6 +63,7 FUNCTION(ADD_CLANGFORMAT_TARGETS) | |||||
63 | clangformat_incr(i) |
|
63 | clangformat_incr(i) | |
64 | ENDWHILE() |
|
64 | ENDWHILE() | |
65 |
|
65 | |||
|
66 | ||||
66 | # Retrieve source files to format |
|
67 | # Retrieve source files to format | |
67 | IF(recurse) |
|
68 | IF(recurse) | |
68 | FILE(GLOB_RECURSE srcs ${globs}) |
|
69 | FILE(GLOB_RECURSE srcs ${globs}) | |
@@ -81,6 +82,16 FUNCTION(ADD_CLANGFORMAT_TARGETS) | |||||
81 | # Create the directory where the touched files will be saved |
|
82 | # Create the directory where the touched files will be saved | |
82 | SET(formatDirectory "${CMAKE_CURRENT_BINARY_DIR}/format") |
|
83 | SET(formatDirectory "${CMAKE_CURRENT_BINARY_DIR}/format") | |
83 | FILE(MAKE_DIRECTORY ${formatDirectory}) |
|
84 | FILE(MAKE_DIRECTORY ${formatDirectory}) | |
|
85 | # STRING(REPLACE "*.ui" "" srcs ${srcs}) | |||
|
86 | FOREACH(item ${globs}) | |||
|
87 | STRING(REGEX MATCH ".*\.ui$" item ${item}) | |||
|
88 | IF(item) | |||
|
89 | LIST(APPEND UIS ${item}) | |||
|
90 | ENDIF(item) | |||
|
91 | ENDFOREACH(item ${globs}) | |||
|
92 | ||||
|
93 | LIST(REMOVE_ITEM srcs ${UIS}) | |||
|
94 | message("format lang: ${srcs}" ) | |||
84 | FOREACH (s ${srcs}) |
|
95 | FOREACH (s ${srcs}) | |
85 | SET(touchedFile ${formatDirectory}/format_touchedfile_${reportNb}) |
|
96 | SET(touchedFile ${formatDirectory}/format_touchedfile_${reportNb}) | |
86 | IF(addToAll) |
|
97 | IF(addToAll) |
General Comments 0
You need to be logged in to leave comments.
Login now