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
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