|
|
@ -3,9 +3,22 @@ add_definitions(-D__OPENCV_APPS=1) |
|
|
|
|
|
|
|
|
|
|
|
link_libraries(${OPENCV_LINKER_LIBS}) |
|
|
|
link_libraries(${OPENCV_LINKER_LIBS}) |
|
|
|
|
|
|
|
|
|
|
|
add_subdirectory(traincascade) |
|
|
|
macro(ocv_add_app directory) |
|
|
|
add_subdirectory(createsamples) |
|
|
|
if(DEFINED BUILD_APPS_LIST) |
|
|
|
add_subdirectory(annotation) |
|
|
|
list(FIND BUILD_APPS_LIST ${directory} _index) |
|
|
|
add_subdirectory(visualisation) |
|
|
|
if (${_index} GREATER -1) |
|
|
|
add_subdirectory(interactive-calibration) |
|
|
|
add_subdirectory(${directory}) |
|
|
|
add_subdirectory(version) |
|
|
|
else() |
|
|
|
|
|
|
|
message(STATUS "Skip OpenCV app: ${directory}") |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
else() |
|
|
|
|
|
|
|
add_subdirectory(${directory}) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
endmacro() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ocv_add_app(traincascade) |
|
|
|
|
|
|
|
ocv_add_app(createsamples) |
|
|
|
|
|
|
|
ocv_add_app(annotation) |
|
|
|
|
|
|
|
ocv_add_app(visualisation) |
|
|
|
|
|
|
|
ocv_add_app(interactive-calibration) |
|
|
|
|
|
|
|
ocv_add_app(version) |
|
|
|