Skip to content

Commit

Permalink
cmake: add a linting target
Browse files Browse the repository at this point in the history
  • Loading branch information
tiennou committed May 27, 2019
1 parent b071d5f commit 2ed5c22
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Expand Up @@ -98,6 +98,14 @@ if(BUILD_TESTING)
add_subdirectory(tests)
endif()

option(LINT "Check style while building" OFF)
if(LINT)
add_custom_target(lint ALL
./ci/checksrc.sh
WORKING_DIRECTORY ${libssh2_SOURCE_DIR})
add_dependencies(libssh2 lint)
endif()

add_subdirectory(docs)

feature_summary(WHAT ALL)
Expand Down

0 comments on commit 2ed5c22

Please sign in to comment.