Skip to content

Commit

Permalink
Include src/training when exporting compile commands with cmake
Browse files Browse the repository at this point in the history
`cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..` is used to get the file
compile_commands.json which is required by clang-tidy.

Export compile commands for all source files, not only those from
the default build, so clang-tidy can cover all source files.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Apr 2, 2019
1 parent e262d71 commit e76d81a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Expand Up @@ -233,6 +233,9 @@ include_directories(src/opencl)
include_directories(src/textord)
include_directories(src/viewer)
include_directories(src/wordrec)
if(CMAKE_EXPORT_COMPILE_COMMANDS)
include_directories(src/training)
endif()

########################################
# LIBRARY tesseract
Expand Down

0 comments on commit e76d81a

Please sign in to comment.