LunaTranslator/cpp/LunaOCR/CMakeLists.txt

10 lines
287 B
CMake
Raw Normal View History

2024-11-04 23:10:41 +08:00
project(LunaOCR)
find_package(OnnxRuntime REQUIRED)
2024-11-05 15:46:45 +08:00
set(OpenCV_STATIC ON)
find_package(OpenCV REQUIRED)
2024-11-04 23:10:41 +08:00
add_library(LunaOCR SHARED OCR.cpp ${versioninfo})
2024-11-15 07:00:09 +08:00
target_link_libraries(LunaOCR ${OnnxRuntime_LIBS} ${OpenCV_LIBS} Clipper2Lib)
2024-11-04 23:10:41 +08:00
target_precompile_headers(LunaOCR REUSE_FROM pch)