mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-13 15:43:53 +08:00
10 lines
287 B
CMake
10 lines
287 B
CMake
project(LunaOCR)
|
|
|
|
find_package(OnnxRuntime REQUIRED)
|
|
set(OpenCV_STATIC ON)
|
|
find_package(OpenCV REQUIRED)
|
|
|
|
add_library(LunaOCR SHARED OCR.cpp ${versioninfo})
|
|
target_link_libraries(LunaOCR ${OnnxRuntime_LIBS} ${OpenCV_LIBS} Clipper2Lib)
|
|
target_precompile_headers(LunaOCR REUSE_FROM pch)
|