mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
10 years ago
|
SET(deps opencv_core opencv_highgui opencv_imgproc)
|
||
|
ocv_check_dependencies(${deps})
|
||
|
|
||
|
if(NOT OCV_DEPENDENCIES_FOUND)
|
||
|
return()
|
||
|
endif()
|
||
|
|
||
|
project(annotation)
|
||
|
|
||
|
ocv_include_directories("${CMAKE_CURRENT_SOURCE_DIR}" "${OpenCV_SOURCE_DIR}/include/opencv")
|
||
|
ocv_include_modules(${deps})
|
||
|
|
||
|
set(the_target opencv_annotation)
|
||
|
|
||
|
add_executable(${the_target} opencv_annotation.cpp)
|
||
|
target_link_libraries(${the_target} ${deps})
|
||
|
|
||
|
set_target_properties(${the_target} PROPERTIES
|
||
|
DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
|
||
|
ARCHIVE_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PATH}
|
||
|
RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}
|
||
|
INSTALL_NAME_DIR lib
|
||
|
OUTPUT_NAME "opencv_annotation")
|
||
|
|
||
|
if(ENABLE_SOLUTION_FOLDERS)
|
||
|
set_target_properties(${the_target} PROPERTIES FOLDER "applications")
|
||
|
endif()
|
||
|
|
||
|
if(INSTALL_CREATE_DISTRIB)
|
||
|
if(BUILD_SHARED_LIBS)
|
||
|
install(TARGETS ${the_target} RUNTIME DESTINATION ${OPENCV_BIN_INSTALL_PATH} CONFIGURATIONS Release COMPONENT dev)
|
||
|
endif()
|
||
|
else()
|
||
|
install(TARGETS ${the_target} RUNTIME DESTINATION ${OPENCV_BIN_INSTALL_PATH} COMPONENT dev)
|
||
|
endif()
|