opencv_python_config.cmake 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. set(CMAKE_BUILD_TYPE "Release")
  2. set(BUILD_SHARED_LIBS "ON")
  3. set(CMAKE_C_FLAGS " -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden")
  4. set(CMAKE_C_FLAGS_DEBUG "-g -O0 -DDEBUG -D_DEBUG")
  5. set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG -DNDEBUG")
  6. set(CMAKE_CXX_FLAGS " -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden")
  7. set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -DDEBUG -D_DEBUG")
  8. set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG -DNDEBUG")
  9. set(CV_GCC "1")
  10. set(CV_CLANG "")
  11. set(ENABLE_NOISY_WARNINGS "OFF")
  12. set(CMAKE_MODULE_LINKER_FLAGS " -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined")
  13. set(CMAKE_INSTALL_PREFIX "/usr/local")
  14. set(OPENCV_PYTHON_INSTALL_PATH "")
  15. set(OpenCV_SOURCE_DIR "/home/zx/env/opencv-4.8.0")
  16. set(OPENCV_FORCE_PYTHON_LIBS "")
  17. set(OPENCV_PYTHON_SKIP_LINKER_EXCLUDE_LIBS "")
  18. set(OPENCV_PYTHON_BINDINGS_DIR "/home/zx/env/opencv-4.8.0/build/modules/python_bindings_generator")
  19. set(cv2_custom_hdr "/home/zx/env/opencv-4.8.0/build/modules/python_bindings_generator/pyopencv_custom_headers.h")
  20. set(cv2_generated_files "/home/zx/env/opencv-4.8.0/build/modules/python_bindings_generator/pyopencv_generated_enums.h;/home/zx/env/opencv-4.8.0/build/modules/python_bindings_generator/pyopencv_generated_funcs.h;/home/zx/env/opencv-4.8.0/build/modules/python_bindings_generator/pyopencv_generated_include.h;/home/zx/env/opencv-4.8.0/build/modules/python_bindings_generator/pyopencv_generated_modules.h;/home/zx/env/opencv-4.8.0/build/modules/python_bindings_generator/pyopencv_generated_modules_content.h;/home/zx/env/opencv-4.8.0/build/modules/python_bindings_generator/pyopencv_generated_types.h;/home/zx/env/opencv-4.8.0/build/modules/python_bindings_generator/pyopencv_generated_types_content.h;/home/zx/env/opencv-4.8.0/build/modules/python_bindings_generator/pyopencv_signatures.json")