transition to meson, remove all the cmake script.
relate issue : #927
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
+++ /dev/null
-CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
-
-PROJECT(nnstreamer C CXX)
-
-OPTION(ENABLE_TENSORFLOW_LITE "Enable tensorflow-lite support" ON)
-OPTION(ENABLE_TENSORFLOW "Enable tensorflow support" OFF)
-OPTION(INSTALL_EXAMPLE_APP "Install example applications" OFF)
-OPTION(ENABLE_TEST "Enable tests" ON)
-OPTION(ENABLE_ORC "Enable ORC" ON)
-
-IF(INSTALL_EXAMPLE_APP)
- IF(EXAMPLE_EXEC_PREFIX)
- MESSAGE("Example application will be installed to ${EXAMPLE_EXEC_PREFIX}")
- ELSE(EXAMPLE_EXEC_PREFIX)
- SET(EXAMPLE_EXEC_PREFIX /usr/lib/nnstreamer/bin/)
- ENDIF(EXAMPLE_EXEC_PREFIX)
-ENDIF(INSTALL_EXAMPLE_APP)
-
-SET(VERSION "0.1.0")
-ADD_DEFINITIONS(-DVERSION="${VERSION}")
-
-SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-SET(EXEC_PREFIX "${PREFIX}/bin")
-SET(INCLUDE_INSTALL_DIR "${PREFIX}/include")
-
-IF(LIB_INSTALL_DIR)
-ELSE(LIB_INSTALL_DIR)
- SET(LIB_INSTALL_DIR "${PREFIX}/${CMAKE_INSTALL_LIBDIR}")
-ENDIF(LIB_INSTALL_DIR)
-
-IF(GST_INSTALL_DIR)
-ELSE(GST_INSTALL_DIR)
- SET(GST_INSTALL_DIR "${LIB_INSTALL_DIR}/gstreamer-1.0")
-ENDIF(GST_INSTALL_DIR)
-
-FIND_PACKAGE(PkgConfig REQUIRED)
-SET(PKG_MODULES
- gstreamer-1.0
- gstreamer-base-1.0
- gstreamer-controller-1.0
- gstreamer-video-1.0
- gstreamer-audio-1.0
- glib-2.0
-)
-
-# Check orc lib and orc compiler
-IF(ENABLE_ORC)
- FIND_LIBRARY(ORC_LIB orc-0.4)
- FIND_PROGRAM(ORC_COMP orcc)
-
- IF(ORC_LIB AND ORC_COMP)
- SET(PKG_MODULES ${PKG_MODULES} orc-0.4)
- SET(HAVE_ORC ON)
- ADD_DEFINITIONS(-DHAVE_ORC=1)
- ELSE(ORC_LIB AND ORC_COMP)
- MESSAGE("Cannot find orc library")
- ADD_DEFINITIONS(-DDISABLE_ORC=1)
- ENDIF(ORC_LIB AND ORC_COMP)
-ELSE(ENABLE_ORC)
- ADD_DEFINITIONS(-DDISABLE_ORC=1)
-ENDIF(ENABLE_ORC)
-
-pkg_check_modules(pkgs REQUIRED ${PKG_MODULES})
-
-INCLUDE_DIRECTORIES(
- ${CMAKE_SOURCE_DIR}/gst/nnstreamer
-)
-INCLUDE_DIRECTORIES(
- SYSTEM
- ${pkgs_INCLUDE_DIRS}
-)
-LINK_DIRECTORIES(${pkgs_LIBRARY_DIRS})
-FOREACH(flag ${pkgs_CFALGS})
- SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
-ENDFOREACH(flag)
-
-# Gstreamer uses C89
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Werror -fPIC -g -std=c89")
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS} -Wall -Werror -fPIC -g -std=c++11")
-
-# Supported projects for the single binary
-SET(PROJECTS
- tensor_aggregator
- tensor_converter
- tensor_decoder
- tensor_demux
- tensor_merge
- tensor_mux
- tensor_saveload
- tensor_sink
- tensor_split
- tensor_transform
- tensor_filter
- tensor_reposink
- tensor_reposrc
-)
-
-ADD_SUBDIRECTORY(nnstreamer_example)
-
-IF(ENABLE_TEST)
- enable_testing()
- ADD_SUBDIRECTORY(tests)
-ENDIF(ENABLE_TEST)
-
-SET(OBJECTS)
-FOREACH(PRJ IN LISTS PROJECTS)
- ADD_SUBDIRECTORY(gst/nnstreamer/${PRJ})
- LIST(APPEND OBJECTS $<TARGET_OBJECTS:${PRJ}OBJ>)
-ENDFOREACH(PRJ)
-
-SET(FILTER_LIB dl)
-SET(FILTER_DEP)
-IF(ENABLE_TENSORFLOW_LITE)
- LIST(APPEND FILTER_LIB tensor_filter_tflitecore)
- LIST(APPEND FILTER_DEP tensor_filter_tflitecore)
-ENDIF(ENABLE_TENSORFLOW_LITE)
-IF(ENABLE_TENSORFLOW)
- LIST(APPEND FILTER_LIB tensor_filter_tfcore)
- LIST(APPEND FILTER_DEP tensor_filter_tfcore)
-ENDIF(ENABLE_TENSORFLOW)
-LIST(LENGTH FILTER_DEP FILTER_DEP_LEN)
-
-SET(NNST_COMMON_SRCS
- gst/nnstreamer/nnstreamer.c
- gst/nnstreamer/nnstreamer_conf.c
- gst/nnstreamer/nnstreamer_subplugin.c
- gst/nnstreamer/tensor_common.c
- gst/nnstreamer/tensor_repo.c
-)
-
-ADD_LIBRARY(nnstreamerStatic STATIC ${NNST_COMMON_SRCS} ${OBJECTS})
-SET_TARGET_PROPERTIES(nnstreamerStatic PROPERTIES OUTPUT_NAME nnstreamer)
-TARGET_INCLUDE_DIRECTORIES(nnstreamerStatic PUBLIC ${pkgs_INCLUDE_DIRS})
-TARGET_COMPILE_OPTIONS(nnstreamerStatic PUBLIC ${pkgs_CFLAGS_OTHER})
-
-ADD_LIBRARY(nnstreamer SHARED ${NNST_COMMON_SRCS} ${OBJECTS})
-TARGET_INCLUDE_DIRECTORIES(nnstreamer PUBLIC ${pkgs_INCLUDE_DIRS})
-TARGET_COMPILE_OPTIONS(nnstreamer PUBLIC ${pkgs_CFLAGS_OTHER})
-TARGET_LINK_LIBRARIES(nnstreamer ${pkgs_LIBRARIES} ${FILTER_LIB})
-
-IF (FILTER_DEP_LEN GREATER 0)
- ADD_DEPENDENCIES(nnstreamer ${FILTER_DEP})
- ADD_DEPENDENCIES(nnstreamerStatic ${FILTER_DEP})
-ENDIF (FILTER_DEP_LEN GREATER 0)
-
-INSTALL(TARGETS nnstreamerStatic nnstreamer
- RUNTIME DESTINATION ${EXEC_PREFIX}
- LIBRARY DESTINATION ${GST_INSTALL_DIR}
- ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
-)
-
-CONFIGURE_FILE(nnstreamer.pc.in nnstreamer.pc @ONLY)
-
-# tensor_typedef.h for nnstreamer users (gst app developers using via gstreamer API)
-# tensor_filter_custom.h for nnstreamer custom filter developers
-INSTALL(FILES gst/nnstreamer/tensor_typedef.h gst/nnstreamer/tensor_filter_custom.h
- DESTINATION ${INCLUDE_INSTALL_DIR}/nnstreamer
-)
-
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/nnstreamer.pc
- DESTINATION ${LIB_INSTALL_DIR}/pkgconfig
-)
+++ /dev/null
-ADD_LIBRARY(tensor_aggregatorOBJ OBJECT tensor_aggregator.c)
+++ /dev/null
-ADD_LIBRARY(tensor_converterOBJ OBJECT tensor_converter.c)
+++ /dev/null
-ADD_LIBRARY(tensor_decoderOBJ OBJECT tensordec.c tensordec-plugins.c
- tensordec-directvideo.c
- tensordec-imagelabel.c
- tensordec-boundingbox.c
- )
+++ /dev/null
-ADD_LIBRARY(tensor_demuxOBJ OBJECT gsttensordemux.c )
+++ /dev/null
-# check whether TENSORFLOW_LITE is available.
-# ENABLE_TENSORFLOW_LITE is defined at /debian/rules according to the build environment
-
-set(FILTER_SOURCE tensor_filter.c tensor_filter_custom.c)
-set(FILTER_TARGET)
-
-IF(ENABLE_TENSORFLOW_LITE) # AVAILABLE
- ADD_DEFINITIONS(-DENABLE_TENSORFLOW_LITE)
-ENDIF(ENABLE_TENSORFLOW_LITE)
-
-IF(ENABLE_TENSORFLOW) # AVAILABLE
- ADD_DEFINITIONS(-DENABLE_TENSORFLOW)
-ENDIF(ENABLE_TENSORFLOW)
-
-IF(ENABLE_TENSORFLOW_LITE)
- list(APPEND FILTER_SOURCE tensor_filter_tensorflow_lite.c)
- list(APPEND FILTER_TARGET tensor_filter_tflitecore)
- list(APPEND FILTER_TARGET tensor_filter_tflitecoreStatic)
-
- PKG_CHECK_MODULES(tflite_pkgs REQUIRED
- tensorflow-lite
- gstreamer-1.0
- glib-2.0
- )
- LINK_DIRECTORIES(${tflite_pkgs_LIBRARY_DIRS})
-
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wno-sign-compare")
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS} -Wno-sign-compare")
-
- ADD_LIBRARY(tensor_filter_tflitecore SHARED tensor_filter_tensorflow_lite_core.cc)
- TARGET_LINK_LIBRARIES(tensor_filter_tflitecore ${tflite_pkgs_LIBRARIES})
- TARGET_INCLUDE_DIRECTORIES(tensor_filter_tflitecore PUBLIC ${tflite_pkgs_INCLUDE_DIRS})
- TARGET_COMPILE_OPTIONS(tensor_filter_tflitecore PUBLIC ${tflite_pkgs_CFLAGS_OTHER})
-
- ADD_LIBRARY(tensor_filter_tflitecoreStatic STATIC tensor_filter_tensorflow_lite_core.cc)
- SET_TARGET_PROPERTIES(tensor_filter_tflitecoreStatic PROPERTIES OUTPUT_NAME tensor_filter_tflitecore)
- TARGET_LINK_LIBRARIES(tensor_filter_tflitecoreStatic ${tflite_pkgs_LIBRARIES})
- TARGET_INCLUDE_DIRECTORIES(tensor_filter_tflitecoreStatic PUBLIC ${tflite_pkgs_INCLUDE_DIRS})
- TARGET_COMPILE_OPTIONS(tensor_filter_tflitecoreStatic PUBLIC ${tflite_pkgs_CFLAGS_OTHER})
-ENDIF(ENABLE_TENSORFLOW_LITE)
-
-IF(ENABLE_TENSORFLOW)
- list(APPEND FILTER_SOURCE tensor_filter_tensorflow.c)
- list(APPEND FILTER_TARGET tensor_filter_tfcore)
- list(APPEND FILTER_TARGET tensor_filter_tfcoreStatic)
-
- PKG_CHECK_MODULES(tf_pkgs REQUIRED
- tensorflow
- protobuf
- gstreamer-1.0
- glib-2.0
- )
- LINK_DIRECTORIES(${tf_pkgs_LIBRARY_DIRS})
-
- ADD_LIBRARY(tensor_filter_tfcore SHARED tensor_filter_tensorflow_core.cc)
- TARGET_LINK_LIBRARIES(tensor_filter_tfcore ${tf_pkgs_LIBRARIES})
- TARGET_INCLUDE_DIRECTORIES(tensor_filter_tfcore PUBLIC ${tf_pkgs_INCLUDE_DIRS})
- TARGET_COMPILE_OPTIONS(tensor_filter_tfcore PUBLIC ${tf_pkgs_CFLAGS_OTHER})
-
- ADD_LIBRARY(tensor_filter_tfcoreStatic STATIC tensor_filter_tensorflow_core.cc)
- SET_TARGET_PROPERTIES(tensor_filter_tfcoreStatic PROPERTIES OUTPUT_NAME tensor_filter_tfcore)
- TARGET_LINK_LIBRARIES(tensor_filter_tfcoreStatic ${tf_pkgs_LIBRARIES})
- TARGET_INCLUDE_DIRECTORIES(tensor_filter_tfcoreStatic PUBLIC ${tf_pkgs_INCLUDE_DIRS})
- TARGET_COMPILE_OPTIONS(tensor_filter_tfcoreStatic PUBLIC ${tf_pkgs_CFLAGS_OTHER})
-ENDIF(ENABLE_TENSORFLOW)
-
-ADD_LIBRARY(tensor_filterOBJ OBJECT ${FILTER_SOURCE})
-
-INSTALL(TARGETS ${FILTER_TARGET}
- RUNTIME DESTINATION ${EXEC_PREFIX}
- LIBRARY DESTINATION ${LIB_INSTALL_DIR}
- ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
-)
+++ /dev/null
-ADD_LIBRARY(tensor_mergeOBJ OBJECT gsttensormerge.c )
+++ /dev/null
-ADD_LIBRARY(tensor_muxOBJ OBJECT gsttensormux.c )
+++ /dev/null
-ADD_LIBRARY(tensor_reposinkOBJ OBJECT tensor_reposink.c)
+++ /dev/null
-ADD_LIBRARY(tensor_reposrcOBJ OBJECT tensor_reposrc.c )
+++ /dev/null
-ADD_LIBRARY(tensor_saveloadOBJ OBJECT tensor_load.c)
+++ /dev/null
-ADD_LIBRARY(tensor_sinkOBJ OBJECT tensor_sink.c)
+++ /dev/null
-ADD_LIBRARY(tensor_splitOBJ OBJECT gsttensorsplit.c )
+++ /dev/null
-SET(TRANSFORM_SRCS
- tensor_transform.c
-)
-
-IF(DEFINED HAVE_ORC AND HAVE_ORC)
- SET(ORC_SOURCE transform-orc)
- SET(ORC_OUT_PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/${ORC_SOURCE})
-
- # Generate orc .h and .c files
- ADD_CUSTOM_COMMAND(
- OUTPUT ${ORC_OUT_PREFIX}.h ${ORC_OUT_PREFIX}.c
- COMMAND rm -f ${ORC_OUT_PREFIX}.h
- COMMAND rm -f ${ORC_OUT_PREFIX}.c
- COMMAND orcc --implementation --include glib.h -o ${ORC_OUT_PREFIX}.c ${ORC_OUT_PREFIX}.orc
- COMMAND orcc --header --include glib.h -o ${ORC_OUT_PREFIX}.h ${ORC_OUT_PREFIX}.orc
- DEPENDS ${ORC_OUT_PREFIX}.orc
- )
-
- SET(TRANSFORM_SRCS ${TRANSFORM_SRCS} ${ORC_SOURCE}.c)
-ENDIF(DEFINED HAVE_ORC AND HAVE_ORC)
-
-ADD_LIBRARY(tensor_transformOBJ OBJECT ${TRANSFORM_SRCS})
-
-IF(DEFINED HAVE_ORC AND HAVE_ORC)
- # Add dependency
- ADD_CUSTOM_TARGET(
- generated-orc
- DEPENDS ${ORC_SOURCE}.h ${ORC_SOURCE}.c
- )
-
- ADD_DEPENDENCIES(tensor_transformOBJ generated-orc)
-ENDIF(DEFINED HAVE_ORC AND HAVE_ORC)
+++ /dev/null
-ADD_SUBDIRECTORY(custom_example_passthrough)
-ADD_SUBDIRECTORY(custom_example_scaler)
-ADD_SUBDIRECTORY(custom_example_average)
-ADD_SUBDIRECTORY(custom_example_opencv)
-ADD_SUBDIRECTORY(custom_example_RNN)
-ADD_SUBDIRECTORY(custom_example_LSTM)
+++ /dev/null
-ADD_LIBRARY(dummyLSTM SHARED dummy_LSTM.c)
-
-TARGET_LINK_LIBRARIES(dummyLSTM m)
-
-INSTALL(TARGETS dummyLSTM
- LIBRARY DESTINATION ${LIB_INSTALL_DIR}
- ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
- )
+++ /dev/null
-ADD_LIBRARY(dummyRNN SHARED dummy_RNN.c)
-
-INSTALL(TARGETS dummyRNN
- LIBRARY DESTINATION ${LIB_INSTALL_DIR}
- ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
- )
+++ /dev/null
-ADD_LIBRARY(nnstreamer_customfilter_average SHARED nnstreamer_customfilter_example_average.c)
-
-INSTALL(TARGETS nnstreamer_customfilter_average
- LIBRARY DESTINATION ${LIB_INSTALL_DIR}
- ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
- )
+++ /dev/null
-pkg_check_modules(custfilter_ex_opencv_pkgs glib-2.0 opencv REQUIRED)
-
-ADD_LIBRARY(nnstreamer_customfilter_opencv_scaler SHARED nnstreamer_customfilter_opencv_scaler.cc)
-TARGET_LINK_LIBRARIES(nnstreamer_customfilter_opencv_scaler ${custfilter_ex_opencv_pkgs_LIBRARIES})
-TARGET_INCLUDE_DIRECTORIES(nnstreamer_customfilter_opencv_scaler PUBLIC ${custfilter_ex_opencv_pkgs_INCLUDE_DIRS})
-
-ADD_LIBRARY(nnstreamer_customfilter_opencv_average SHARED nnstreamer_customfilter_opencv_average.cc)
-TARGET_LINK_LIBRARIES(nnstreamer_customfilter_opencv_average ${custfilter_ex_opencv_pkgs_LIBRARIES})
-TARGET_INCLUDE_DIRECTORIES(nnstreamer_customfilter_opencv_average PUBLIC ${custfilter_ex_opencv_pkgs_INCLUDE_DIRS})
-
-INSTALL(TARGETS nnstreamer_customfilter_opencv_scaler nnstreamer_customfilter_opencv_average
- LIBRARY DESTINATION ${LIB_INSTALL_DIR}
- ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
-)
+++ /dev/null
-ADD_LIBRARY(nnstreamer_customfilter_passthrough SHARED nnstreamer_customfilter_example_passthrough.c)
-ADD_LIBRARY(nnstreamer_customfilter_passthrough_variable SHARED nnstreamer_customfilter_example_passthrough_variable.c)
-
-INSTALL(TARGETS nnstreamer_customfilter_passthrough nnstreamer_customfilter_passthrough_variable
- LIBRARY DESTINATION ${LIB_INSTALL_DIR}
- ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
- )
+++ /dev/null
-pkg_check_modules(custfilter_ex_scaler_pkgs glib-2.0 REQUIRED)
-
-ADD_LIBRARY(nnstreamer_customfilter_scaler SHARED nnstreamer_customfilter_example_scaler.c)
-TARGET_LINK_LIBRARIES(nnstreamer_customfilter_scaler ${custfilter_ex_scaler_pkgs_LIBRARIES})
-TARGET_INCLUDE_DIRECTORIES(nnstreamer_customfilter_scaler PUBLIC ${custfilter_ex_scaler_pkgs_INCLUDE_DIRS})
-
-ADD_LIBRARY(nnstreamer_customfilter_scaler_allocator SHARED nnstreamer_customfilter_example_scaler_allocator.c)
-TARGET_LINK_LIBRARIES(nnstreamer_customfilter_scaler_allocator ${custfilter_ex_scaler_pkgs_LIBRARIES})
-TARGET_INCLUDE_DIRECTORIES(nnstreamer_customfilter_scaler PUBLIC ${custfilter_ex_scaler_pkgs_INCLUDE_DIRS})
-
-INSTALL(TARGETS nnstreamer_customfilter_scaler nnstreamer_customfilter_scaler_allocator
- LIBRARY DESTINATION ${LIB_INSTALL_DIR}
- ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
- )
+++ /dev/null
-# For unit test
-
-SET(PKGTEST_MODULES
- gstreamer-app-1.0
- gstreamer-check-1.0
-)
-
-FIND_LIBRARY(GTEST_LIB gtest)
-
-IF(GTEST_LIB)
- # Use GTEST shared lib
- SET(gtestLink gtest pthread)
- SET(gtestSrc "")
- SET(gtestInc "")
-ELSE(GTEST_LIB)
- IF (NOT EXISTS /usr/src/gtest/src/gtest-all.cc)
- MESSAGE(FATAL FATAL_ERROR "You need to install libgtest-dev or (supplied with GTEST_LIB) libgtest.so.")
- ENDIF ()
- SET(gtestLink pthread)
- SET(gtestSrc /usr/src/gtest/src/gtest-all.cc)
- SET(gtestInc /usr/src/gtest)
-ENDIF(GTEST_LIB)
-
-pkg_check_modules(testpkgs REQUIRED ${PKGTEST_MODULES})
-
-# sub-directory for test plugins
-ADD_SUBDIRECTORY(nnstreamer_tensors/tensors_test)
-
-# Unit test for common
-ADD_EXECUTABLE(unittest_common common/unittest_common.cpp ${gtestSrc})
-TARGET_INCLUDE_DIRECTORIES(unittest_common PUBLIC ${pkgs_INCLUDE_DIRS} ${testpkgs_INCLUDE_DIRS} ${gtestInc})
-TARGET_LINK_LIBRARIES(unittest_common nnstreamer ${pkgs_LIBRARIES} ${testpkgs_LIBRARIES} ${gtestLink})
-
-# Unit test using tensor_sink
-ADD_EXECUTABLE(unittest_sink nnstreamer_sink/unittest_sink.cpp ${gtestSrc})
-TARGET_INCLUDE_DIRECTORIES(unittest_sink PUBLIC ${pkgs_INCLUDE_DIRS} ${testpkgs_INCLUDE_DIRS} ${gtestInc})
-TARGET_LINK_LIBRARIES(unittest_sink nnstreamer ${pkgs_LIBRARIES} ${testpkgs_LIBRARIES} ${gtestLink})
-
-# Unit test uses this custom filter
-ADD_LIBRARY(nnscustom_framecounter SHARED nnstreamer_sink/nnscustom_framecounter.c)
-TARGET_LINK_LIBRARIES(nnscustom_framecounter nnstreamer glib-2.0)
-
-# Unit test for nnstreamer plugins
-ADD_EXECUTABLE(unittest_plugins nnstreamer_plugins/unittest_plugins.cpp ${gtestSrc})
-TARGET_INCLUDE_DIRECTORIES(unittest_plugins PUBLIC ${pkgs_INCLUDE_DIRS} ${testpkgs_INCLUDE_DIRS} ${gtestInc})
-TARGET_LINK_LIBRARIES(unittest_plugins nnstreamer ${pkgs_LIBRARIES} ${testpkgs_LIBRARIES} ${gtestLink})
-
-ADD_TEST(NAME unit_test
- COMMAND sh -c "GST_PLUGIN_PATH=${PROJECT_SOURCE_DIR}/build ssat ${CMAKE_CURRENT_SOURCE_DIR}")
-
-SET_TESTS_PROPERTIES(unit_test PROPERTIES TIMEOUT 120)
-
-pkg_check_modules(pnglib REQUIRED libpng)
-ADD_EXECUTABLE(bmp2png bmp2png.c)
-TARGET_INCLUDE_DIRECTORIES(bmp2png PUBLIC ${pnglib_INCLUDE_DIRS})
-TARGET_LINK_LIBRARIES(bmp2png ${pnglib_LIBRARIES})
-
-# Copy bmp2png to /tests so that unittest scripts can use it.
-ADD_CUSTOM_COMMAND(
- TARGET bmp2png POST_BUILD
- COMMAND cp
- ${CMAKE_CURRENT_BINARY_DIR}/bmp2png
- ${CMAKE_CURRENT_SOURCE_DIR}/
- )
+++ /dev/null
-ADD_LIBRARY(testtensors SHARED gsttesttensors.c )
-ADD_LIBRARY(testtensorsStatic STATIC gsttesttensors.c)
-
-TARGET_LINK_LIBRARIES(testtensors ${pkgs_LIBRARIES} nnstreamer)
-TARGET_INCLUDE_DIRECTORIES(testtensors PUBLIC ${pkgs_INCLUDE_DIRS})
-TARGET_COMPILE_OPTIONS(testtensors PUBLIC ${pkgs_CFLAGS_OTHER})
-
-TARGET_LINK_LIBRARIES(testtensorsStatic ${pkgs_LIBRARIES} nnstreamer)
-TARGET_INCLUDE_DIRECTORIES(testtensorsStatic PUBLIC ${pkgs_INCLUDE_DIRS})
-TARGET_COMPILE_OPTIONS(testtensorsStatic PUBLIC ${pkgs_CFLAGS_OTHER})
-
-ADD_LIBRARY(tensorscheck SHARED gsttensorscheck.c )
-ADD_LIBRARY(tensorscheckStatic STATIC gsttensorscheck.c)
-
-TARGET_LINK_LIBRARIES(tensorscheck ${pkgs_LIBRARIES} nnstreamer)
-TARGET_INCLUDE_DIRECTORIES(tensorscheck PUBLIC ${pkgs_INCLUDE_DIRS})
-TARGET_COMPILE_OPTIONS(tensorscheck PUBLIC ${pkgs_CFLAGS_OTHER})
-
-TARGET_LINK_LIBRARIES(tensorscheckStatic ${pkgs_LIBRARIES} nnstreamer)
-TARGET_INCLUDE_DIRECTORIES(tensorscheckStatic PUBLIC ${pkgs_INCLUDE_DIRS})
-TARGET_COMPILE_OPTIONS(tensorscheckStatic PUBLIC ${pkgs_CFLAGS_OTHER})