2010-05-11 19:44:00 +02:00
|
|
|
project(traincascade)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}"
|
2011-06-14 12:19:56 +02:00
|
|
|
"${OpenCV_SOURCE_DIR}/modules/core/include"
|
|
|
|
"${OpenCV_SOURCE_DIR}/modules/imgproc/include"
|
|
|
|
"${OpenCV_SOURCE_DIR}/modules/objdetect/include"
|
|
|
|
"${OpenCV_SOURCE_DIR}/modules/ml/include"
|
|
|
|
"${OpenCV_SOURCE_DIR}/modules/highgui/include"
|
|
|
|
"${OpenCV_SOURCE_DIR}/modules/video/include"
|
|
|
|
"${OpenCV_SOURCE_DIR}/modules/features2d/include"
|
|
|
|
"${OpenCV_SOURCE_DIR}/modules/flann/include"
|
|
|
|
"${OpenCV_SOURCE_DIR}/modules/calib3d/include"
|
|
|
|
"${OpenCV_SOURCE_DIR}/modules/legacy/include"
|
2010-05-11 19:44:00 +02:00
|
|
|
)
|
|
|
|
|
2010-06-11 01:38:37 +02:00
|
|
|
set(traincascade_libs opencv_core opencv_ml opencv_imgproc
|
|
|
|
opencv_objdetect opencv_highgui opencv_haartraining_engine)
|
2010-05-11 19:44:00 +02:00
|
|
|
|
|
|
|
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
|
2011-10-06 18:46:03 +02:00
|
|
|
HOGfeatures.cpp HOGfeatures.h
|
2010-05-11 19:44:00 +02:00
|
|
|
imagestorage.cpp imagestorage.h)
|
|
|
|
|
2010-06-11 01:38:37 +02:00
|
|
|
set(the_target opencv_traincascade)
|
|
|
|
add_executable(${the_target} ${traincascade_files})
|
|
|
|
|
|
|
|
add_dependencies(${the_target} ${traincascade_libs})
|
|
|
|
set_target_properties(${the_target} PROPERTIES
|
2010-05-11 19:44:00 +02:00
|
|
|
DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
|
2011-05-31 00:13:32 +02:00
|
|
|
ARCHIVE_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PATH}
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}
|
|
|
|
INSTALL_NAME_DIR lib
|
2010-05-11 19:44:00 +02:00
|
|
|
OUTPUT_NAME "opencv_traincascade")
|
2011-05-11 15:37:20 +02:00
|
|
|
|
2011-05-17 11:40:06 +02:00
|
|
|
if(ENABLE_SOLUTION_FOLDERS)
|
2011-05-11 15:37:20 +02:00
|
|
|
set_target_properties(${the_target} PROPERTIES FOLDER "applications")
|
|
|
|
endif()
|
2010-05-11 19:44:00 +02:00
|
|
|
|
2010-06-11 01:38:37 +02:00
|
|
|
target_link_libraries(${the_target} ${traincascade_libs})
|
2010-05-11 19:44:00 +02:00
|
|
|
|
2011-06-24 17:40:27 +02:00
|
|
|
if(NOT ANDROID)
|
|
|
|
install(TARGETS ${the_target} RUNTIME DESTINATION bin COMPONENT main)
|
|
|
|
endif()
|