mirror of
https://github.com/opencv/opencv.git
synced 2024-12-15 18:09:11 +08:00
bbc35d609d
Conflicts: cmake/OpenCVDetectPython.cmake cmake/OpenCVModule.cmake modules/core/src/gpumat.cpp modules/cudaimgproc/test/test_hough.cpp modules/gpu/CMakeLists.txt modules/gpu/src/cuda/generalized_hough.cu modules/gpu/src/generalized_hough.cpp modules/python/CMakeLists.txt
43 lines
1.6 KiB
CMake
43 lines
1.6 KiB
CMake
set(OPENCV_TRAINCASCADE_DEPS opencv_core opencv_ml opencv_imgproc opencv_photo opencv_objdetect opencv_highgui opencv_calib3d opencv_video opencv_features2d opencv_flann opencv_legacy)
|
|
ocv_check_dependencies(${OPENCV_TRAINCASCADE_DEPS})
|
|
|
|
if(NOT OCV_DEPENDENCIES_FOUND)
|
|
return()
|
|
endif()
|
|
|
|
project(traincascade)
|
|
|
|
ocv_include_directories("${CMAKE_CURRENT_SOURCE_DIR}" "${OpenCV_SOURCE_DIR}/include/opencv")
|
|
ocv_include_modules(${OPENCV_TRAINCASCADE_DEPS})
|
|
|
|
set(traincascade_files traincascade.cpp
|
|
cascadeclassifier.cpp cascadeclassifier.h
|
|
boost.cpp boost.h features.cpp traincascade_features.h
|
|
haarfeatures.cpp haarfeatures.h
|
|
lbpfeatures.cpp lbpfeatures.h
|
|
HOGfeatures.cpp HOGfeatures.h
|
|
imagestorage.cpp imagestorage.h)
|
|
|
|
set(the_target opencv_traincascade)
|
|
add_executable(${the_target} ${traincascade_files})
|
|
target_link_libraries(${the_target} ${OPENCV_TRAINCASCADE_DEPS} opencv_haartraining_engine)
|
|
|
|
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_traincascade")
|
|
|
|
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()
|