fix build error with tv profile 16/283716/1 accepted/tizen/unified/20221103.165815
authorTae-Young Chung <ty83.chung@samsung.com>
Wed, 2 Nov 2022 06:18:21 +0000 (15:18 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Wed, 2 Nov 2022 06:18:24 +0000 (15:18 +0900)
[Version]: 0.23.41-2
[Issue type]: bug fix

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

index 463e5e5..28a66fc 100644 (file)
@@ -1,7 +1,7 @@
 Name:        capi-media-vision
 Summary:     Media Vision library for Tizen Native API
 Version:     0.23.41
-Release:     1
+Release:     2
 Group:       Multimedia/Framework
 License:     Apache-2.0 and BSD-3-Clause
 Source0:     %{name}-%{version}.tar.gz
index 73fad4f..0cf0ac3 100644 (file)
@@ -14,15 +14,23 @@ if(MV_3D_POINTCLOUD_IS_AVAILABLE)
   endif()
 endif()
 
-add_executable(${PROJECT_NAME}
-    testsuites/barcode/test_barcode.cpp
+set(SRC_FILES  testsuites/barcode/test_barcode.cpp
     testsuites/machine_learning/inference/test_inference_helper.cpp
     testsuites/machine_learning/inference/test_image_classification.cpp
     testsuites/machine_learning/inference/test_object_detection.cpp
     testsuites/machine_learning/inference/test_face_detection.cpp
     testsuites/machine_learning/inference/test_face_landmark_detection.cpp
-    testsuites/machine_learning/inference/test_pose_landmark_detection.cpp
-    testsuites/mv3d/test_3d.cpp
-)
-target_link_libraries(${PROJECT_NAME} gtest gtest_main mv_inference mv_image_helper mv_barcode_detector mv_3d)
+    testsuites/machine_learning/inference/test_pose_landmark_detection.cpp)
+
+if (${BUILD_DEPTH_STREAM_TESTSUITE})
+set(SRC_FILES ${SRC_FILES} testsuites/mv3d/test_3d.cpp)
+endif()
+
+add_executable(${PROJECT_NAME} ${SRC_FILES})
+target_link_libraries(${PROJECT_NAME} gtest gtest_main mv_inference mv_image_helper mv_barcode_detector)
+
+if (${BUILD_DEPTH_STREAM_TESTSUITE})
+target_link_libraries(${PROJECT_NAME} mv_3d)
+endif()
+
 install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
\ No newline at end of file