From: Tae-Young Chung Date: Wed, 2 Nov 2022 06:18:21 +0000 (+0900) Subject: fix build error with tv profile X-Git-Tag: accepted/tizen/unified/20221103.165815^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=31de28c83d49604714d687c0225cdb2b17148467;p=platform%2Fcore%2Fapi%2Fmediavision.git fix build error with tv profile [Version]: 0.23.41-2 [Issue type]: bug fix Change-Id: I9e0b30396c78aa11c5134e51529acd6736157f46 Signed-off-by: Tae-Young Chung --- diff --git a/packaging/capi-media-vision.spec b/packaging/capi-media-vision.spec index 463e5e5..28a66fc 100644 --- a/packaging/capi-media-vision.spec +++ b/packaging/capi-media-vision.spec @@ -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 diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 73fad4f..0cf0ac3 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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