@ -264,53 +264,28 @@ endif(MSVC)
add_dependencies ( ${ the_target } opencv_core opencv_imgproc )
# A d d t h e r e q u i r e d l i b r a r i e s f o r l i n k i n g :
target_link_libraries ( ${ the_target } ${ OPENCV_LINKER_LIBS } opencv_core opencv_imgproc ${ JPEG_LIBRARIES } ${ PNG_LIBRARIES } ${ TIFF_LIBRARIES } ${ JASPER_LIBRARIES } ${ HIGHGUI_LIBRARIES } ${ OPENEXR_LIBRARIES } )
if ( WITH_JASPER AND NOT JASPER_FOUND )
add_dependencies ( ${ the_target } libjasper )
target_link_libraries ( ${ the_target } libjasper )
# target_link_libraries ( ${ the_target } libjasper )
endif ( )
if ( WITH_JPEG AND NOT JPEG_FOUND )
add_dependencies ( ${ the_target } libjpeg )
target_link_libraries ( ${ the_target } libjpeg )
# target_link_libraries ( ${ the_target } libjpeg )
endif ( )
if ( WITH_PNG AND NOT PNG_FOUND )
add_dependencies ( ${ the_target } libpng opencv_ zlib)
target_link_libraries ( ${ the_target } libpng opencv_ zlib)
add_dependencies ( ${ the_target } libpng zlib )
# target_link_libraries ( ${ the_target } libpng zlib )
endif ( )
if ( WITH_TIFF AND NOT TIFF_FOUND )
add_dependencies ( ${ the_target } libtiff )
target_link_libraries ( ${ the_target } libtiff )
# target_link_libraries ( ${ the_target } libtiff )
endif ( )
# if ( OPENCV_BUILD_3RDPARTY_LIBS )
# add_dependencies ( ${ the_target } libjasper libjpeg libpng libtiff opencv_zlib )
# target_link_libraries ( ${ the_target } libjasper libjpeg libpng libtiff opencv_zlib )
# endif ( )
if ( WIN32 )
target_link_libraries ( ${ the_target } comctl32 gdi32 ole32 )
if ( MSVC )
target_link_libraries ( ${ the_target } vfw32 )
endif ( )
if ( MINGW )
if ( MINGW64 )
target_link_libraries ( ${ the_target } msvfw32 avifil32 avicap32 winmm )
if ( HAVE_VIDEOINPUT )
target_link_libraries ( ${ the_target } videoInput64 strmiids )
endif ( )
else ( )
target_link_libraries ( ${ the_target } vfw32 winmm )
if ( HAVE_VIDEOINPUT )
target_link_libraries ( ${ the_target } videoInput strmiids )
endif ( )
endif ( )
endif ( )
endif ( )
target_link_libraries ( ${ the_target } ${ OPENCV_LINKER_LIBS } opencv_core opencv_imgproc zlib ${ JPEG_LIBRARIES } ${ PNG_LIBRARIES } ${ TIFF_LIBRARIES } ${ JASPER_LIBRARIES } ${ HIGHGUI_LIBRARIES } ${ OPENEXR_LIBRARIES } )
if ( APPLE )
target_link_libraries ( ${ the_target } "-lbz2 -framework Cocoa -framework QuartzCore" )