Home | History | Annotate | Download | only in annotation
      1 SET(OPENCV_ANNOTATION_DEPS opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs opencv_videoio)
      2 ocv_check_dependencies(${OPENCV_ANNOTATION_DEPS})
      3 
      4 if(NOT OCV_DEPENDENCIES_FOUND)
      5    return()
      6 endif()
      7 
      8 project(annotation)
      9 set(the_target opencv_annotation)
     10 
     11 ocv_target_include_directories(${the_target} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}" "${OpenCV_SOURCE_DIR}/include/opencv")
     12 ocv_target_include_modules_recurse(${the_target} ${OPENCV_ANNOTATION_DEPS})
     13 
     14 file(GLOB SRCS *.cpp)
     15 
     16 set(annotation_files ${SRCS})
     17 ocv_add_executable(${the_target} ${annotation_files})
     18 ocv_target_link_libraries(${the_target} ${OPENCV_ANNOTATION_DEPS})
     19 
     20 set_target_properties(${the_target} PROPERTIES
     21                       DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
     22                       ARCHIVE_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PATH}
     23                       RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}
     24                       INSTALL_NAME_DIR lib
     25                       OUTPUT_NAME "opencv_annotation")
     26 
     27 if(ENABLE_SOLUTION_FOLDERS)
     28    set_target_properties(${the_target} PROPERTIES FOLDER "applications")
     29 endif()
     30 
     31 if(INSTALL_CREATE_DISTRIB)
     32    if(BUILD_SHARED_LIBS)
     33       install(TARGETS ${the_target} RUNTIME DESTINATION ${OPENCV_BIN_INSTALL_PATH} CONFIGURATIONS Release COMPONENT dev)
     34    endif()
     35 else()
     36    install(TARGETS ${the_target} RUNTIME DESTINATION ${OPENCV_BIN_INSTALL_PATH} COMPONENT dev)
     37 endif()
     38