mirror of
https://github.com/opencv/opencv.git
synced 2024-12-04 00:39:11 +08:00
minor fixes in CMake scripts
This commit is contained in:
parent
7a715aa792
commit
c11bc13126
@ -1239,6 +1239,9 @@ else()
|
||||
message(STATUS " Use TBB: NO")
|
||||
endif()
|
||||
|
||||
message(STATUS "")
|
||||
message(STATUS " Documentation: ")
|
||||
|
||||
if(BUILD_LATEX_DOCS AND PDFLATEX_COMPILER)
|
||||
message(STATUS " Build PDF YES")
|
||||
else()
|
||||
|
@ -13,8 +13,8 @@ include_directories(
|
||||
"${CMAKE_SOURCE_DIR}/modules/legacy/include"
|
||||
)
|
||||
|
||||
set(traincascade_libs opencv_core opencv_ml opencv_imgproc opencv_objdetect opencv_highgui opencv_haartraining_engine)
|
||||
link_libraries(${traincascade_libs})
|
||||
set(traincascade_libs opencv_core opencv_ml opencv_imgproc
|
||||
opencv_objdetect opencv_highgui opencv_haartraining_engine)
|
||||
|
||||
set(traincascade_files traincascade.cpp
|
||||
cascadeclassifier.cpp cascadeclassifier.h
|
||||
@ -22,14 +22,15 @@ set(traincascade_files traincascade.cpp
|
||||
haarfeatures.cpp haarfeatures.h
|
||||
lbpfeatures.cpp lbpfeatures.h
|
||||
imagestorage.cpp imagestorage.h)
|
||||
|
||||
add_executable(traincascade ${traincascade_files})
|
||||
|
||||
add_dependencies(traincascade ${traincascade_libs})
|
||||
set_target_properties(traincascade PROPERTIES
|
||||
set(the_target opencv_traincascade)
|
||||
add_executable(${the_target} ${traincascade_files})
|
||||
|
||||
add_dependencies(${the_target} ${traincascade_libs})
|
||||
set_target_properties(${the_target} PROPERTIES
|
||||
DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
|
||||
OUTPUT_NAME "opencv_traincascade")
|
||||
|
||||
target_link_libraries(traincascade ${traincascade_libs})
|
||||
target_link_libraries(${the_target} ${traincascade_libs})
|
||||
|
||||
install(TARGETS traincascade RUNTIME DESTINATION bin COMPONENT main)
|
||||
install(TARGETS ${the_target} RUNTIME DESTINATION bin COMPONENT main)
|
||||
|
Loading…
Reference in New Issue
Block a user