-cmake_minimum_required(VERSION 2.6)
set(fw_name "capi-media-vision")
-
project(${fw_name})
-
-set(CMAKE_INSTALL_PREFIX /usr)
-set(PREFIX ${CMAKE_INSTALL_PREFIX})
+cmake_minimum_required(VERSION 2.6)
set(MV_COMMON_LIB_NAME "mv_common")
set(MV_BARCODE_DETECTOR_LIB_NAME "mv_barcode_detector" CACHE STRING
set(MV_MACHINE_LEARNING_LIB_NAME "mv_machine_learning" CACHE STRING
"Name of the library will be built for inference module (without extension).")
-
-set(INC_DIR "${PROJECT_SOURCE_DIR}/include")
-set(INC_COMMON "${PROJECT_SOURCE_DIR}/mv_common/include")
-
-message(STATUS "In_dir ${INC_DIR}")
-
-set(INC_BARCODE_DETECTOR "${PROJECT_SOURCE_DIR}/mv_barcode/barcode_detector/include")
-set(INC_BARCODE_GENERATOR "${PROJECT_SOURCE_DIR}/mv_barcode/barcode_generator/include")
-set(INC_IMAGE "${PROJECT_SOURCE_DIR}/mv_image/image/include")
-set(INC_FACE "${PROJECT_SOURCE_DIR}/mv_face/face/include")
-set(INC_SURVEILLANCE "${PROJECT_SOURCE_DIR}/mv_surveillance/surveillance/include")
-set(INC_INFERENCE "${PROJECT_SOURCE_DIR}/mv_machine_learning/mv_inference/inference/include")
-
-include_directories(${INC_DIR}
- ${INC_COMMON}
- ${INC_BARCODE_DETECTOR}
- ${INC_BARCODE_GENERATOR}
- ${INC_FACE}
- ${INC_IMAGE}
- ${INC_SURVEILLANCE}
- ${INC_INFERENCE})
-
-set(dependents "dlog capi-media-tool capi-system-info")
-set(pc_dependents "capi-media-tool")
-
include(FindPkgConfig)
-pkg_check_modules(${fw_name} REQUIRED ${dependents})
-foreach(flag ${${fw_name}_CFLAGS})
- set(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
- set(EXTRA_CXXFLAGS "${EXTRA_CXXFLAGS} ${flag}")
-endforeach(flag)
-
-set(TEST_SRC_SUPPORT_ARM_NEON "
-#include <arm_neon.h>
-
-int main (int argc, char **argv) {
-float32x4_t acc = vdupq_n_f32(0.f);
-return 0;
-}
-")
-
-message("arch is ${ARCH}")
-include(CheckCSourceCompiles)
-CHECK_C_SOURCE_COMPILES("${TEST_SRC_SUPPORT_ARM_NEON}" SUPPORT_NEON)
-if(SUPPORT_NEON)
- add_definitions("-DENABLE_NEON")
-else()
- set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -mfpu=neon")
- message("CMAKE_REQUIRED_FLAGS: ${CMAKE_REQUIRED_FLAGS}")
-
- CHECK_C_SOURCE_COMPILES("${TEST_SRC_SUPPORT_ARM_NEON}" SUPPORT_NEON_)
- message("Again check SUPPORT_NEON ${SUPPORT_NEON_}")
- if(SUPPORT_NEON_)
- add_definitions("-DENABLE_NEON")
- if("${ARCH}" STREQUAL "arm")
- set(NEON_CFLAGS "-mfpu=neon")
- set(NEON_CXXFLAGS "-mfpu=neon")
- endif()
- endif()
-endif()
-
-set(CMAKE_C_FLAGS "-I./include -I./include/headers ${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} ${NEON_CFLAGS} -fPIC -Wall")
-set(CMAKE_CXX_FLAGS "-I./include -I./include/headers ${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS} ${NEON_CXXFLAGS} -fPIC -Wall")
-
-if("${ARCH}" STREQUAL "arm")
- add_definitions("-DTARGET")
-endif("${ARCH}" STREQUAL "arm")
-
-add_definitions("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
+include(GNUInstallDirs)
add_subdirectory(mv_common)
add_subdirectory(mv_barcode)
add_subdirectory(mv_machine_learning)
install(
- DIRECTORY ${INC_DIR}/ DESTINATION include/media
+ DIRECTORY include/ DESTINATION include/media
FILES_MATCHING
PATTERN "*_private.h" EXCLUDE
PATTERN "*.h"
set(PC_REQUIRED "${fw_name}-barcode ${fw_name}-face ${fw_name}-image ${fw_name}-surveillance ${fw_name}-inference")
set(PC_LDFLAGS "-l${MV_COMMON_LIB_NAME} -l${MV_BARCODE_DETECTOR_LIB_NAME} -l${MV_BARCODE_GENERATOR_LIB_NAME} \
-l${MV_IMAGE_LIB_NAME} -l${MV_FACE_LIB_NAME} -l${MV_SURVEILLANCE_LIB_NAME} -l${MV_MACHINE_LEARNING_LIB_NAME}")
-set(PC_CFLAGS -I\${includedir}/media)
configure_file(
${fw_name}.pc.in
)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+set(pc_dependents "capi-media-tool")
set(PC_NAME ${fw_name}-common)
set(PC_REQUIRED ${pc_dependents})
set(PC_LDFLAGS "-l${MV_COMMON_LIB_NAME}")
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}-inference.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
add_subdirectory(test)
-
-if(UNIX)
-
-add_custom_target (distclean @echo cleaning for source distribution)
-add_custom_command(
- DEPENDS clean
- COMMENT "distribution clean"
- COMMAND find
- ARGS .
- -not -name config.cmake -and \(
- -name tester.c -or
- -name Testing -or
- -name CMakeFiles -or
- -name cmake.depends -or
- -name cmake.check_depends -or
- -name CMakeCache.txt -or
- -name cmake.check_cache -or
- -name *.cmake -or
- -name Makefile -or
- -name core -or
- -name core.* -or
- -name gmon.out -or
- -name install_manifest.txt -or
- -name *.pc -or
- -name *~ \)
- | grep -v TC | xargs rm -rf
- TARGET distclean
- VERBATIM
-)
-
-endif(UNIX)
-
project(${MV_BARCODE_DETECTOR_LIB_NAME})
cmake_minimum_required(VERSION 2.6)
-set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG _DEBUG)
-
-set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${LIB_INSTALL_DIR})
-set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${LIB_INSTALL_DIR})
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
-
-include_directories("${INC_DIR}")
-include_directories("${PROJECT_SOURCE_DIR}/include")
-include_directories("${PROJECT_SOURCE_DIR}/src")
-
-file(GLOB MV_BARCODE_DET_INC_LIST "${PROJECT_SOURCE_DIR}/include/*.h")
file(GLOB MV_BARCODE_DET_SRC_LIST "${PROJECT_SOURCE_DIR}/src/*.cpp"
"${PROJECT_SOURCE_DIR}/src/*.c")
if(NOT OpenCV_FOUND)
message(SEND_ERROR "Failed to find OpenCV")
return()
-else()
- include_directories(${OpenCV_INCLUDE_DIRS})
endif()
if(FORCED_STATIC_BUILD)
- add_library(${PROJECT_NAME} STATIC ${MV_BARCODE_DET_INC_LIST} ${MV_BARCODE_DET_SRC_LIST})
+ add_library(${PROJECT_NAME} STATIC ${MV_BARCODE_DET_SRC_LIST})
else()
- add_library(${PROJECT_NAME} SHARED ${MV_BARCODE_DET_INC_LIST} ${MV_BARCODE_DET_SRC_LIST})
+ add_library(${PROJECT_NAME} SHARED ${MV_BARCODE_DET_SRC_LIST})
endif()
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS} ${MV_COMMON_LIB_NAME} zbar dlog)
-
+target_include_directories(${PROJECT_NAME} PUBLIC include)
install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
project(${MV_BARCODE_GENERATOR_LIB_NAME})
cmake_minimum_required(VERSION 2.6)
-set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG _DEBUG)
-
-set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${LIB_INSTALL_DIR})
-set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${LIB_INSTALL_DIR})
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
-
-include_directories("${INC_DIR}")
-include_directories("${PROJECT_SOURCE_DIR}/include")
-include_directories("${PROJECT_SOURCE_DIR}/src")
-
-file(GLOB MV_BARCODE_GEN_INC_LIST "${PROJECT_SOURCE_DIR}/include/*.h")
file(GLOB MV_BARCODE_GEN_SRC_LIST "${PROJECT_SOURCE_DIR}/src/*.cpp"
"${PROJECT_SOURCE_DIR}/src/*.c")
-find_package(OpenCV REQUIRED)
-include_directories(${OpenCV_INCLUDE_DIRS})
+find_package(OpenCV REQUIRED imgcodecs)
if(FORCED_STATIC_BUILD)
- add_library(${PROJECT_NAME} STATIC ${MV_BARCODE_GEN_INC_LIST} ${MV_BARCODE_GEN_SRC_LIST})
+ add_library(${PROJECT_NAME} STATIC ${MV_BARCODE_GEN_SRC_LIST})
else()
- add_library(${PROJECT_NAME} SHARED ${MV_BARCODE_GEN_INC_LIST} ${MV_BARCODE_GEN_SRC_LIST})
+ add_library(${PROJECT_NAME} SHARED ${MV_BARCODE_GEN_SRC_LIST})
endif()
target_link_libraries(${PROJECT_NAME} zint ${MV_COMMON_LIB_NAME} ${OpenCV_LIBS} dlog)
-
+target_include_directories(${PROJECT_NAME} PUBLIC include)
install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
project(${MV_COMMON_LIB_NAME})
cmake_minimum_required(VERSION 2.6)
-set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG _DEBUG)
-
-set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${LIB_INSTALL_DIR})
-set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${LIB_INSTALL_DIR})
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
-
-include_directories("${PROJECT_SOURCE_DIR}/include")
-
-file(GLOB MV_COMMON_INCLUDE_LIST "${PROJECT_SOURCE_DIR}/include/*.h")
file(GLOB MV_COMMON_SRC_LIST "${PROJECT_SOURCE_DIR}/src/*.cpp"
"${PROJECT_SOURCE_DIR}/src/*.c")
find_package(OpenCV REQUIRED core imgproc)
-
if(NOT OpenCV_FOUND)
message(SEND_ERROR "Failed to find OpenCV")
return()
-else()
- include_directories(${OpenCV_INCLUDE_DIRS})
endif()
-pkg_check_modules(JSONGLIB REQUIRED json-glib-1.0)
-include_directories(${JSONGLIB_INCLUDE_DIRS})
+pkg_check_modules(${PROJECT_NAME}_DEP REQUIRED json-glib-1.0 capi-system-info capi-media-tool dlog)
if(FORCED_STATIC_BUILD)
- add_library(${PROJECT_NAME} STATIC ${MV_COMMON_INCLUDE_LIST} ${MV_COMMON_SRC_LIST})
+ add_library(${PROJECT_NAME} STATIC ${MV_COMMON_SRC_LIST})
else()
- add_library(${PROJECT_NAME} SHARED ${MV_COMMON_INCLUDE_LIST} ${MV_COMMON_SRC_LIST})
+ add_library(${PROJECT_NAME} SHARED ${MV_COMMON_SRC_LIST})
endif()
-target_link_libraries(${MV_COMMON_LIB_NAME} ${OpenCV_LIBS} capi-system-info capi-media-tool tbm json-glib-1.0)
-
+target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS} ${${PROJECT_NAME}_DEP_LIBRARIES})
+target_include_directories(${PROJECT_NAME} PUBLIC include ${${PROJECT_NAME}_DEP_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/include)
install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
project(${MV_FACE_LIB_NAME})
cmake_minimum_required(VERSION 2.6)
-set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG _DEBUG)
-
-set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${LIB_INSTALL_DIR})
-set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${LIB_INSTALL_DIR})
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
-
-include_directories("${PROJECT_SOURCE_DIR}/include")
-include_directories("${PROJECT_SOURCE_DIR}/src")
-
-file(GLOB MV_FACE_INCLUDE_LIST "${PROJECT_SOURCE_DIR}/include/*.h")
file(GLOB MV_FACE_SRC_LIST "${PROJECT_SOURCE_DIR}/src/*.cpp" "${PROJECT_SOURCE_DIR}/src/*.c")
find_package(OpenCV REQUIRED core objdetect imgproc tracking face)
if(NOT OpenCV_FOUND)
message(SEND_ERROR "Failed to find OpenCV")
return()
-else()
- include_directories(${OpenCV_INCLUDE_DIRS})
endif()
if(FORCED_STATIC_BUILD)
- add_library(${PROJECT_NAME} STATIC ${MV_FACE_INCLUDE_LIST} ${MV_FACE_SRC_LIST})
+ add_library(${PROJECT_NAME} STATIC ${MV_FACE_SRC_LIST})
else()
- add_library(${PROJECT_NAME} SHARED ${MV_FACE_INCLUDE_LIST} ${MV_FACE_SRC_LIST})
+ add_library(${PROJECT_NAME} SHARED ${MV_FACE_SRC_LIST})
endif()
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS} ${MV_COMMON_LIB_NAME} dlog)
-
+target_include_directories(${PROJECT_NAME} PUBLIC include)
install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
project(${MV_IMAGE_LIB_NAME})
cmake_minimum_required(VERSION 2.6)
-set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG _DEBUG)
-
-set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${LIB_INSTALL_DIR})
-set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${LIB_INSTALL_DIR})
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
-
-include_directories("${PROJECT_SOURCE_DIR}/include")
-include_directories("${PROJECT_SOURCE_DIR}/src")
-
-file(GLOB_RECURSE MV_IMAGE_INC_LIST "${PROJECT_SOURCE_DIR}/include/*.h")
file(GLOB_RECURSE MV_IMAGE_SRC_LIST "${PROJECT_SOURCE_DIR}/src/*.cpp" "${PROJECT_SOURCE_DIR}/src/*.c")
find_package(OpenCV REQUIRED core imgproc objdetect tracking features2d xfeatures2d)
if(NOT OpenCV_FOUND)
message(SEND_ERROR "Failed to find OpenCV")
return()
-else()
- include_directories(${OpenCV_INCLUDE_DIRS})
endif()
if(FORCED_STATIC_BUILD)
- add_library(${PROJECT_NAME} STATIC ${MV_IMAGE_INC_LIST} ${MV_IMAGE_SRC_LIST})
+ add_library(${PROJECT_NAME} STATIC ${MV_IMAGE_SRC_LIST})
else()
- add_library(${PROJECT_NAME} SHARED ${MV_IMAGE_INC_LIST} ${MV_IMAGE_SRC_LIST})
+ add_library(${PROJECT_NAME} SHARED ${MV_IMAGE_SRC_LIST})
endif()
target_link_libraries(${PROJECT_NAME} ${MV_COMMON_LIB_NAME} ${OpenCV_LIBS})
-
+target_include_directories(${PROJECT_NAME} PUBLIC include)
install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
project(mv_inference)
cmake_minimum_required(VERSION 2.6)
-set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG _DEBUG)
-
-set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${LIB_INSTALL_DIR})
-set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${LIB_INSTALL_DIR})
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
-
-include_directories("${INC_DIR}")
-include_directories("${PROJECT_SOURCE_DIR}/include")
-include_directories("${PROJECT_SOURCE_DIR}/src")
-
-set(dependents "inference-engine-interface-common iniparser json-glib-1.0")
-include(FindPkgConfig)
-pkg_check_modules(${fw_name} REQUIRED ${dependents})
-foreach(flag ${${fw_name}_CFLAGS})
- set(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
- set(EXTRA_CXXFLAGS "${EXTRA_CXXFLAGS} ${flag}")
-endforeach(flag)
-
-
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS} -Wno-unused-parameter -Wno-sign-compare")
-file(GLOB MV_INFERENCE_INCLUDE_LIST "${PROJECT_SOURCE_DIR}/include/*.h" "${PROJECT_SOURCE_DIR}/include/*.hpp")
+pkg_check_modules(${PROJECT_NAME}_DEP REQUIRED inference-engine-interface-common iniparser json-glib-1.0)
file(GLOB MV_INFERENCE_SOURCE_LIST "${PROJECT_SOURCE_DIR}/src/*.c" "${PROJECT_SOURCE_DIR}/src/*.cpp")
find_package(OpenCV REQUIRED core dnn imgproc)
if(NOT OpenCV_FOUND)
message(SEND_ERROR "OpenCV NOT FOUND")
return()
-else()
- include_directories(${OpenCV_INCLUDE_DIRS})
endif()
-
if(FORCED_STATIC_BUILD)
- add_library(${PROJECT_NAME} STATIC ${MV_INFERENCE_INCLUDE_LIST} ${MV_INFERENCE_SOURCE_LIST})
+ add_library(${PROJECT_NAME} STATIC ${MV_INFERENCE_SOURCE_LIST})
else()
- add_library(${PROJECT_NAME} SHARED ${MV_INFERENCE_INCLUDE_LIST} ${MV_INFERENCE_SOURCE_LIST})
+ add_library(${PROJECT_NAME} SHARED ${MV_INFERENCE_SOURCE_LIST})
endif()
-target_link_libraries(${PROJECT_NAME} ${MV_COMMON_LIB_NAME} ${OpenCV_LIBS} inference-engine-interface-common dlog iniparser json-glib-1.0)
-
+target_link_libraries(${PROJECT_NAME} ${MV_COMMON_LIB_NAME} ${OpenCV_LIBS} ${${PROJECT_NAME}_DEP_LIBRARIES})
+target_include_directories(${PROJECT_NAME} PUBLIC include)
install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
project(${MV_SURVEILLANCE_LIB_NAME})
cmake_minimum_required(VERSION 2.6)
-set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG _DEBUG)
-
-set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${LIB_INSTALL_DIR})
-set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${LIB_INSTALL_DIR})
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
-
-include_directories("${INC_DIR}")
-include_directories("${PROJECT_SOURCE_DIR}/include")
-include_directories("${PROJECT_SOURCE_DIR}/src")
-
-file(GLOB MV_SURVEILLANCE_INC_LIST "${PROJECT_SOURCE_DIR}/include/*.h")
file(GLOB MV_SURVEILLANCE_SRC_LIST "${PROJECT_SOURCE_DIR}/src/*.cpp"
"${PROJECT_SOURCE_DIR}/src/*.c")
if(FORCED_STATIC_BUILD)
- add_library(${PROJECT_NAME} STATIC ${MV_SURVEILLANCE_INC_LIST} ${MV_SURVEILLANCE_SRC_LIST})
+ add_library(${PROJECT_NAME} STATIC ${MV_SURVEILLANCE_SRC_LIST})
else()
- add_library(${PROJECT_NAME} SHARED ${MV_SURVEILLANCE_INC_LIST} ${MV_SURVEILLANCE_SRC_LIST})
+ add_library(${PROJECT_NAME} SHARED ${MV_SURVEILLANCE_SRC_LIST})
endif()
target_link_libraries(${PROJECT_NAME} ${MV_COMMON_LIB_NAME} ${MV_FACE_LIB_NAME})
-
+target_include_directories(${PROJECT_NAME} PUBLIC include)
install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
Name: capi-media-vision
Summary: Media Vision library for Tizen Native API
-Version: 0.8.0
-Release: 4
+Version: 0.8.1
+Release: 0
Group: Multimedia/Framework
License: Apache-2.0 and BSD-3-Clause
Source0: %{name}-%{version}.tar.gz
export LDFLAGS+=" -lgcov"
%endif
-MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DTZ_SYS_BIN=%TZ_SYS_BIN \
-%ifarch %arm
- -DARCH=arm
-%endif
+%cmake .
make %{?jobs:-j%jobs}
%license LICENSE.APLv2
%{_libdir}/libmv_*helper.so
%{_libdir}/libmv_testsuite*.so
-%TZ_SYS_BIN/mv_*
+%{_bindir}/mv_*
%if 0%{?gcov:1}
%files gcov
-cmake_minimum_required(VERSION 2.6)
-
-set(testbin_dir ${TZ_SYS_BIN})
-
-add_subdirectory(${PROJECT_SOURCE_DIR}/test/assessment)
-add_subdirectory(${PROJECT_SOURCE_DIR}/test/testsuites)
+add_subdirectory(assessment)
+add_subdirectory(testsuites)
dlog
)
-install(TARGETS ${PROJECT_NAME} DESTINATION ${testbin_dir})
+install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
mv_common
dlog)
-install(TARGETS ${PROJECT_NAME} DESTINATION ${testbin_dir})
+install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
mv_common
dlog)
-install(TARGETS ${PROJECT_NAME} DESTINATION ${testbin_dir})
+install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
avcodec avformat avutil swscale mv_image_helper
)
-install(TARGETS ${PROJECT_NAME} DESTINATION ${testbin_dir})
-install(FILES mv_barcode_test_suite_auto PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ DESTINATION ${testbin_dir})
+install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
+install(FILES mv_barcode_test_suite_auto PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ DESTINATION ${CMAKE_INSTALL_BINDIR})
message(SEND_ERROR "Failed to find OpenCV")
return()
endif()
+pkg_check_modules(${PROJECT_NAME}_DEP REQUIRED capi-media-tool dlog)
if(FORCED_STATIC_BUILD)
add_library(${PROJECT_NAME} STATIC ${MV_IMAGE_HELPER_SRC_LIST})
add_library(${PROJECT_NAME} SHARED ${MV_IMAGE_HELPER_SRC_LIST})
endif()
-target_include_directories(${PROJECT_NAME} PUBLIC ${PROJECT_SOURCE_DIR}/include ${OpenCV_INCLUDE_DIRS})
+target_include_directories(${PROJECT_NAME} PUBLIC include ${OpenCV_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/include ${${PROJECT_NAME}_DEP_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})
-
install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
project(mv_video_helper)
cmake_minimum_required(VERSION 2.6)
-pkg_check_modules(${PROJECT_NAME}_DEP REQUIRED gstreamer-1.0 gstreamer-app-1.0 gstreamer-video-1.0 dlog)
+pkg_check_modules(${PROJECT_NAME}_DEP REQUIRED gstreamer-1.0 gstreamer-app-1.0 gstreamer-video-1.0 capi-media-tool dlog)
add_library(${PROJECT_NAME} SHARED mv_video_helper.c)
target_link_libraries(${PROJECT_NAME} ${${PROJECT_NAME}_DEP_LIBRARIES})
-target_include_directories(${PROJECT_NAME} PUBLIC ${INC_IMAGE_HELPER} ${${PROJECT_NAME}_DEP_INCLUDE_DIRS})
-
+target_include_directories(${PROJECT_NAME} PUBLIC ${INC_IMAGE_HELPER} ${${PROJECT_NAME}_DEP_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/include)
install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
mv_video_helper
mv_testsuite_common)
-install(TARGETS ${PROJECT_NAME} DESTINATION ${testbin_dir})
+install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
mv_video_helper
mv_testsuite_common)
-install(TARGETS ${PROJECT_NAME} DESTINATION ${testbin_dir})
+install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
mv_video_helper
mv_testsuite_common)
-install(TARGETS ${PROJECT_NAME} DESTINATION ${testbin_dir})
+install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
mv_testsuite_common
mv_image_helper)
-install(TARGETS ${PROJECT_NAME} DESTINATION ${testbin_dir})
+install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})