Forked from
asapo / asapo
2417 commits behind the upstream repository.
-
Carsten Patzke authored
Added project strucre; some tests & first producer changed folder structure Made test build optional Changed project structure for producer added doxygen added doxygen to cmake fixed doxygen file made googletest separated changed cmake strucure Added head lock guard
Carsten Patzke authoredAdded project strucre; some tests & first producer changed folder structure Made test build optional Changed project structure for producer added doxygen added doxygen to cmake fixed doxygen file made googletest separated changed cmake strucure Added head lock guard
astyle.cmake 592 B
function(astyle target source_files)
find_program(ASTYLE_EXECUTABLE astyle)
if(ASTYLE_EXECUTABLE)
message("Found astyle, using astyle to format code of target ${target}.")
add_custom_command(
TARGET ${target} PRE_BUILD
COMMAND
${ASTYLE_EXECUTABLE} -n --style=1tbs --indent-namespaces --indent-preproc-block ${source_files}
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} VERBATIM
)
else()
message("Unable to find astyle. Skipping code formatting for ${target}")
endif()
endfunction()