CMakeLists.txt 689 B

123456789101112131415
  1. set(the_description "datasets framework")
  2. set(filter_srcs "${CMAKE_CURRENT_LIST_DIR}/src/tinyxml2/tinyxml2.cpp")
  3. if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
  4. ocv_append_source_files_cxx_compiler_options(filter_srcs "-Wno-suggest-override") # GCC
  5. elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
  6. ocv_append_source_files_cxx_compiler_options(filter_srcs "-Wno-inconsistent-missing-override") # Clang
  7. endif()
  8. ocv_define_module(datasets opencv_core opencv_imgcodecs opencv_ml opencv_flann OPTIONAL opencv_text WRAP python)
  9. ocv_warnings_disable(CMAKE_CXX_FLAGS
  10. /wd4267 # flann, Win64
  11. -Wimplicit-fallthrough # tinyxml2.cpp
  12. )