poafloc

poafloc - Parser Of Arguments For Lines Of Commands
git clone git://git.dimitrijedobrota.com/poafloc.git
Log | Files | Refs | README | LICENSE

spell-targets.cmake (581B)


      1 set(SPELL_COMMAND codespell CACHE STRING "Spell checker to use")
      2 
      3 add_custom_target(
      4     spell-check
      5     COMMAND "${CMAKE_COMMAND}"
      6     -D "SPELL_COMMAND=${SPELL_COMMAND}"
      7     -P "${PROJECT_SOURCE_DIR}/cmake/spell.cmake"
      8     WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
      9     COMMENT "Checking spelling"
     10     VERBATIM
     11 )
     12 
     13 add_custom_target(
     14     spell-fix
     15     COMMAND "${CMAKE_COMMAND}"
     16     -D "SPELL_COMMAND=${SPELL_COMMAND}"
     17     -D FIX=YES
     18     -P "${PROJECT_SOURCE_DIR}/cmake/spell.cmake"
     19     WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
     20     COMMENT "Fixing spelling errors"
     21     VERBATIM
     22 )