You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.8 KiB

  1. --- a/CMakeLists.txt
  2. +++ b/CMakeLists.txt
  3. @@ -224,41 +224,6 @@ set(tesseract_src ${tesseract_src}
  4. src/api/pdfrenderer.cpp
  5. )
  6. -if (WIN32)
  7. - if (MSVC)
  8. - include_directories(src/vs2010/tesseract)
  9. - set(tesseract_hdr
  10. - ${tesseract_hdr}
  11. - ${CMAKE_CURRENT_SOURCE_DIR}/src/vs2010/tesseract/resource.h)
  12. - set(tesseract_rsc ${CMAKE_BINARY_DIR}/vs2010/tesseract/libtesseract.rc)
  13. - set_source_files_properties(
  14. - ${CMAKE_CURRENT_SOURCE_DIR}/src/arch/dotproductsse.cpp
  15. - PROPERTIES COMPILE_DEFINITIONS __SSE4_1__)
  16. - set_source_files_properties(
  17. - ${CMAKE_CURRENT_SOURCE_DIR}/src/arch/intsimdmatrixsse.cpp
  18. - PROPERTIES COMPILE_DEFINITIONS __SSE4_1__)
  19. - set_source_files_properties(
  20. - ${CMAKE_CURRENT_SOURCE_DIR}/src/arch/dotproductavx.cpp
  21. - PROPERTIES COMPILE_FLAGS "/arch:AVX")
  22. - set_source_files_properties(
  23. - ${CMAKE_CURRENT_SOURCE_DIR}/src/arch/intsimdmatrixavx2.cpp
  24. - PROPERTIES COMPILE_FLAGS "/arch:AVX2")
  25. - endif()
  26. -else()
  27. - set_source_files_properties(
  28. - ${CMAKE_CURRENT_SOURCE_DIR}/src/arch/dotproductsse.cpp
  29. - PROPERTIES COMPILE_FLAGS "-msse4.1")
  30. - set_source_files_properties(
  31. - ${CMAKE_CURRENT_SOURCE_DIR}/src/arch/intsimdmatrixsse.cpp
  32. - PROPERTIES COMPILE_FLAGS "-msse4.1")
  33. - set_source_files_properties(
  34. - ${CMAKE_CURRENT_SOURCE_DIR}/src/arch/dotproductavx.cpp
  35. - PROPERTIES COMPILE_FLAGS "-mavx")
  36. - set_source_files_properties(
  37. - ${CMAKE_CURRENT_SOURCE_DIR}/src/arch/intsimdmatrixavx2.cpp
  38. - PROPERTIES COMPILE_FLAGS "-mavx2")
  39. -endif()
  40. -
  41. add_library (libtesseract ${LIBRARY_TYPE} ${tesseract_src} ${tesseract_hdr}
  42. ${tesseract_rsc}
  43. )