#
# Test that all source files, cmakefiles, etc. do not contain trailing whitespace.
#

set(CHECK_WHITESPACE_IGNORE ${CMAKE_BINARY_DIR} CACHE STRING "Directories ignored by the whitespace check")

add_test(whitespace
  ${CMAKE_CURRENT_SOURCE_DIR}/check_whitespace.py
  ${CMAKE_SOURCE_DIR}
  ${CHECK_WHITESPACE_IGNORE}
)
