Skip to content

Commit

Permalink
Fix broken cmake builds
Browse files Browse the repository at this point in the history
Cmake builds need the additional directories `arch` and `lstm`
to find all include files and also for linking.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Nov 23, 2016
1 parent 5bb97f9 commit 95df572
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,15 @@ include_directories(${Leptonica_INCLUDE_DIRS})
include_directories(${CMAKE_BINARY_DIR})

include_directories(api)
include_directories(arch)
include_directories(ccmain)
include_directories(ccstruct)
include_directories(ccutil)
include_directories(classify)
include_directories(cube)
include_directories(cutil)
include_directories(dict)
include_directories(lstm)
include_directories(neural_networks/runtime)
include_directories(opencl)
include_directories(textord)
Expand All @@ -159,13 +161,15 @@ string(SUBSTRING ${VERSION_MINOR} 0 1 VERSION_MINOR_0)
string(SUBSTRING ${VERSION_MINOR} 1 1 VERSION_MINOR_1)

file(GLOB tesseract_src
arch/*.cpp
ccmain/*.cpp
ccstruct/*.cpp
ccutil/*.cpp
classify/*.cpp
cube/*.cpp
cutil/*.cpp
dict/*.cpp
lstm/*.cpp
neural_networks/runtime/*.cpp
opencl/*.cpp
textord/*.cpp
Expand All @@ -174,13 +178,15 @@ file(GLOB tesseract_src
)
file(GLOB tesseract_hdr
api/*.h
arch/*.h
ccmain/*.h
ccstruct/*.h
ccutil/*.h
classify/*.h
cube/*.h
cutil/*.h
dict/*.h
lstm/*.h
neural_networks/runtime/*.h
opencl/*.h
textord/*.h
Expand Down

0 comments on commit 95df572

Please sign in to comment.