Sha256: 46fde84504d57e6e666249c73a460cf6b79f615419a84b72af57cee75fd433bb

Contents?: true

Size: 358 Bytes

Versions: 21

Compression:

Stored size: 358 Bytes

Contents

# Find the program
find_program(ASTYLE_EXECUTABLE astyle DOC "A tool to format the code")

# Add a custom target
add_custom_target("format" COMMAND
  "${ASTYLE_EXECUTABLE}"
  --indent=spaces=2 --style=1tbs --keep-one-line-blocks
  ${CMAKE_CURRENT_SOURCE_DIR}/src/*.c
  ${CMAKE_CURRENT_SOURCE_DIR}/src/*.h
  ${CMAKE_CURRENT_SOURCE_DIR}/tests/*.c
  VERBATIM
)

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
mathematical-1.6.20 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.6.18 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.6.14 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.6.13 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.6.12 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.6.11 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.6.10 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.6.9 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.6.8 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.6.7 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.6.6 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.6.5 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.6.4 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.6.3 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.6.2 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.6.1 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.6.0 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.5.12 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.5.0 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake
mathematical-1.4.2 ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake