mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 01:10:22 +03:00
vcap: conditionally add target based on findJPEG result
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
f850f5b7d8
commit
72b975b6cc
@ -2,17 +2,21 @@ set (libname "vcap")
|
|||||||
set (libdescription "upm Video Frame Capture and image save utility")
|
set (libdescription "upm Video Frame Capture and image save utility")
|
||||||
set (module_src ${libname}.cxx)
|
set (module_src ${libname}.cxx)
|
||||||
set (module_hpp ${libname}.hpp)
|
set (module_hpp ${libname}.hpp)
|
||||||
set (reqlibname "jpeg")
|
|
||||||
upm_module_init()
|
find_package (JPEG)
|
||||||
target_link_libraries(${libname} jpeg)
|
if (JPEG_FOUND)
|
||||||
if (BUILDSWIG)
|
set (reqlibname "jpeg")
|
||||||
if (BUILDSWIGNODE)
|
upm_module_init()
|
||||||
swig_link_libraries (jsupm_${libname} jpeg)
|
target_link_libraries(${libname} jpeg)
|
||||||
endif()
|
if (BUILDSWIG)
|
||||||
if (BUILDSWIGPYTHON)
|
if (BUILDSWIGNODE)
|
||||||
swig_link_libraries (pyupm_${libname} jpeg)
|
swig_link_libraries (jsupm_${libname} jpeg)
|
||||||
endif()
|
endif()
|
||||||
if (BUILDSWIGJAVA)
|
if (BUILDSWIGPYTHON)
|
||||||
swig_link_libraries (javaupm_${libname} jpeg)
|
swig_link_libraries (pyupm_${libname} jpeg)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
if (BUILDSWIGJAVA)
|
||||||
|
swig_link_libraries (javaupm_${libname} jpeg)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
Loading…
x
Reference in New Issue
Block a user