From: StevenPuttemans Date: Thu, 5 Mar 2015 13:25:43 +0000 (+0100) Subject: update cmakelists for annotation tool X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~2625^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=217f6289156a831f09bdbb65affffe0e6f8a89ba;p=platform%2Fupstream%2Fopencv.git update cmakelists for annotation tool --- diff --git a/apps/annotation/CMakeLists.txt b/apps/annotation/CMakeLists.txt index cf244cb..e14721a 100644 --- a/apps/annotation/CMakeLists.txt +++ b/apps/annotation/CMakeLists.txt @@ -1,19 +1,21 @@ -SET(deps opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs opencv_videoio) -ocv_check_dependencies(${deps}) +SET(OPENCV_ANNOTATION_DEPS opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs opencv_videoio) +ocv_check_dependencies(${OPENCV_ANNOTATION_DEPS}) if(NOT OCV_DEPENDENCIES_FOUND) return() endif() project(annotation) +set(the_target opencv_annotation) -ocv_include_directories("${CMAKE_CURRENT_SOURCE_DIR}" "${OpenCV_SOURCE_DIR}/include/opencv") -ocv_include_modules(${deps}) +ocv_target_include_directories(${the_target} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}" "${OpenCV_SOURCE_DIR}/include/opencv") +ocv_target_include_modules(${the_target} ${OPENCV_ANNOTATION_DEPS}) -set(the_target opencv_annotation) +file(GLOB SRCS *.cpp) -add_executable(${the_target} opencv_annotation.cpp) -target_link_libraries(${the_target} ${deps}) +set(annotation_files ${SRCS}) +ocv_add_executable(${the_target} ${annotation_files}) +ocv_target_link_libraries(${the_target} ${OPENCV_ANNOTATION_DEPS}) set_target_properties(${the_target} PROPERTIES DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"