set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function")
endif()
- ocv_include_modules(${OPENCV_C_SAMPLES_REQUIRED_DEPS})
+ ocv_include_modules(${OPENCV_C_SAMPLES_REQUIRED_DEPS} opencv_nonfree)
# ---------------------------------------------
# Define executable targets
project(cpp_samples)
ocv_include_directories("${OpenCV_SOURCE_DIR}/include")#for opencv.hpp
- ocv_include_modules(${OPENCV_CPP_SAMPLES_REQUIRED_DEPS})
+ ocv_include_modules(${OPENCV_CPP_SAMPLES_REQUIRED_DEPS} opencv_nonfree)
if(HAVE_opencv_gpu)
ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/gpu/include")
* @function readme
*/
void readme()
-{ std::cout << " Usage: ./SURF_descriptor <img1> <img2>" << std::endl; }
+{ printf(" Usage: ./SURF_descriptor <img1> <img2>\n"); }
#endif
\ No newline at end of file
project("${project}_samples")
- ocv_include_modules(${OPENCV_OCL_SAMPLES_REQUIRED_DEPS})
+ ocv_include_modules(${OPENCV_OCL_SAMPLES_REQUIRED_DEPS} opencv_nonfree)
if(HAVE_OPENCL)
ocv_include_directories(${OPENCL_INCLUDE_DIR})