Compare commits
No commits in common. "58a568b2a6bec6adec596179ca42ddfb3a5badc2" and "1fdbd267dd745064331460ea7d59be6180a4ddca" have entirely different histories.
58a568b2a6
...
1fdbd267dd
@ -37,7 +37,6 @@ include(CMLibCodeAnalysisClazy)
|
|||||||
include(CMLibSanitizers)
|
include(CMLibSanitizers)
|
||||||
include(cotire)
|
include(cotire)
|
||||||
|
|
||||||
include(CMLibFormatSources)
|
|
||||||
include(CMLibBreathe)
|
include(CMLibBreathe)
|
||||||
include(CMLibQtTranslation)
|
include(CMLibQtTranslation)
|
||||||
include(CMLibToday)
|
include(CMLibToday)
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
function(add_uncrustify_format)
|
|
||||||
list(GET ARGN 0 _target)
|
|
||||||
set(_sources ${ARGN})
|
|
||||||
list(REMOVE_AT _sources 0)
|
|
||||||
|
|
||||||
find_program(UNCRUSTIFY_EXE NAMES uncrustify)
|
|
||||||
if(UNCRUSTIFY_EXE)
|
|
||||||
if(NOT TARGET uncrustify-format)
|
|
||||||
add_custom_target(uncrustify-format)
|
|
||||||
endif()
|
|
||||||
add_custom_target(uncrustify-format-${_target}
|
|
||||||
COMMAND ${UNCRUSTIFY_EXE} -lCPP --replace --no-backup ${_sources})
|
|
||||||
add_dependencies(uncrustify-format uncrustify-format-${_target})
|
|
||||||
else()
|
|
||||||
message(WARNING "Uncrustify is not found")
|
|
||||||
endif()
|
|
||||||
endfunction()
|
|
Loading…
Reference in New Issue
Block a user