LunaTranslator/cpp/LunaOCR/CMakeLists.txt
恍兮惚兮 4d9840ae68 .
2025-01-04 07:28:06 +08:00

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)