|
|
|
@ -74,8 +74,8 @@ if(OpenCV_EXTRA_COMPONENTS) |
|
|
|
|
list(APPEND OpenCV_LIB_COMPONENTS_ "${extra_component}") |
|
|
|
|
elseif(extra_component MATCHES "[\\/]") |
|
|
|
|
get_filename_component(libdir "${extra_component}" PATH) |
|
|
|
|
get_filename_component(libname "${extra_component}" NAME_WE) |
|
|
|
|
string(REGEX REPLACE "^lib" "" libname "${libname}") |
|
|
|
|
get_filename_component(libname "${extra_component}" NAME) |
|
|
|
|
ocv_get_libname(libname "${libname}") |
|
|
|
|
list(APPEND OpenCV_LIB_COMPONENTS_ "-L${libdir}" "-l${libname}") |
|
|
|
|
else() |
|
|
|
|
list(APPEND OpenCV_LIB_COMPONENTS_ "-l${extra_component}") |
|
|
|
|