fix build error with aarch64 32/283532/1 accepted/tizen/unified/20221102.085158
authorTae-Young Chung <ty83.chung@samsung.com>
Fri, 28 Oct 2022 06:21:03 +0000 (15:21 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Fri, 28 Oct 2022 06:21:16 +0000 (15:21 +0900)
[Version]: 0.23.41-1
[Issue type]: bug fix

Build error message:
```
[   17s] CMake Error at test/CMakeLists.txt:17 (target_link_libraries):
[   17s]   Error evaluating generator expression:
[   17s]
[   17s]     $<TARGET_PROPERTY:Open3D::Open3D,TYPE>
[   17s]
[   17s]   Target "Open3D::Open3D" not found.
```
This commit resolves it.

Change-Id: I2b2d20367011316b12c7c8ed3117731845156941
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
packaging/capi-media-vision.spec
test/CMakeLists.txt

index 78083ca..463e5e5 100644 (file)
@@ -1,7 +1,7 @@
 Name:        capi-media-vision
 Summary:     Media Vision library for Tizen Native API
 Version:     0.23.41
-Release:     0
+Release:     1
 Group:       Multimedia/Framework
 License:     Apache-2.0 and BSD-3-Clause
 Source0:     %{name}-%{version}.tar.gz
index f7a90d9..73fad4f 100644 (file)
@@ -4,6 +4,16 @@ add_subdirectory(testsuites)
 project(mv_test)
 cmake_minimum_required(VERSION 2.6...3.13)
 
+if(MV_3D_POINTCLOUD_IS_AVAILABLE)
+  find_package(Open3D REQUIRED NO_POLICY_SCOPE)
+  if(NOT Open3D_FOUND)
+    message(SEND_ERROR "Open3D NOT FOUND")
+    return()
+  else()
+    include_directories(${Open3D_INCLUDE_DIRS})
+  endif()
+endif()
+
 add_executable(${PROJECT_NAME}
     testsuites/barcode/test_barcode.cpp
     testsuites/machine_learning/inference/test_inference_helper.cpp