mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
Include src/training when exporting compile commands with cmake
`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>
This commit is contained in:
parent
e262d71a56
commit
e76d81a0d5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user