Update src/CmakeLists.txt - only check style over files starting with [A-z]

This commit is contained in:
Soonho Kong 2013-09-16 16:23:20 -07:00
parent 9b792d938d
commit ef18759e77

View file

@ -114,8 +114,8 @@ add_subdirectory(tests/frontends/lean)
include(StyleCheck)
file(GLOB_RECURSE LEAN_SOURCES
${LEAN_SOURCE_DIR}
${LEAN_SOURCE_DIR}/*.cpp
${LEAN_SOURCE_DIR}/*.h)
${LEAN_SOURCE_DIR}/[A-Za-z]*.cpp
${LEAN_SOURCE_DIR}/[A-Za-z]*.h)
add_style_check_target(style "${LEAN_SOURCES}")
add_test(NAME style_check
COMMAND ${LEAN_SOURCE_DIR}/cmake/Modules/cpplint.py ${LEAN_SOURCES})