CMakeLists.txt 788 B

12345678910111213141516171819202122232425
  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 norm)
  5. project(${PROJECT_NAME})
  6. ocv_install_example_src(norm *.cpp *.hpp CMakeLists.txt)
  7. set(LOCAL_DEPS
  8. opencv_core
  9. ${OPENCV_MODULES_PUBLIC}
  10. ${OpenCV_LIB_COMPONENTS})
  11. ocv_check_dependencies(${LOCAL_DEPS})
  12. if(NOT OCV_DEPENDENCIES_FOUND)
  13. return()
  14. endif()
  15. ocv_define_sample(norm norm.cpp ${SEMIHOSTING_SUFFIX})
  16. ocv_include_modules_recurse(${LOCAL_DEPS})
  17. target_include_directories(${norm} PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
  18. target_include_directories(${norm} PRIVATE ${RAW_PIXEL_INCLUDE})
  19. ocv_target_link_libraries(${norm} PRIVATE ${OPENCV_LINKER_LIBS}
  20. ${LOCAL_DEPS})