1 add_definitions(-D__OPENCV_BUILD=1) 2 link_libraries(${OPENCV_LINKER_LIBS}) 3 4 add_subdirectory(traincascade) 5 add_subdirectory(createsamples) 6 add_subdirectory(annotation) 7