CMakeLists.txt 840 B

1234567891011121314151617181920212223242526
  1. # This file is part of OpenCV project.
  2. # It is subject to the license terms in the LICENSE file found in the top-level directory
  3. # of this distribution and at http://opencv.org/license.html
  4. set(PROJECT_NAME histogram)
  5. project(${PROJECT_NAME})
  6. ocv_install_example_src(histogram *.cpp *.hpp CMakeLists.txt)
  7. set(LOCAL_DEPS
  8. opencv_core
  9. opencv_imgproc
  10. ${OPENCV_MODULES_PUBLIC}
  11. ${OpenCV_LIB_COMPONENTS})
  12. ocv_check_dependencies(${LOCAL_DEPS})
  13. if(NOT OCV_DEPENDENCIES_FOUND)
  14. return()
  15. endif()
  16. ocv_define_sample(histogram histogram.cpp ${SEMIHOSTING_SUFFIX})
  17. ocv_include_modules_recurse(${LOCAL_DEPS})
  18. target_include_directories(${histogram} PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
  19. target_include_directories(${histogram} PRIVATE ${RAW_PIXEL_INCLUDE})
  20. ocv_target_link_libraries(${histogram} PRIVATE ${OPENCV_LINKER_LIBS}
  21. ${LOCAL_DEPS})