[Build] remove cmake
authorJaeyun <jy1210.jung@samsung.com>
Tue, 22 Jan 2019 03:34:54 +0000 (12:34 +0900)
committerMyungJoo Ham <myungjoo.ham@gmail.com>
Thu, 24 Jan 2019 01:54:34 +0000 (10:54 +0900)
transition to meson, remove all the cmake script.

relate issue : #927

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
23 files changed:
CMakeLists.txt [deleted file]
gst/nnstreamer/tensor_aggregator/CMakeLists.txt [deleted file]
gst/nnstreamer/tensor_converter/CMakeLists.txt [deleted file]
gst/nnstreamer/tensor_decoder/CMakeLists.txt [deleted file]
gst/nnstreamer/tensor_demux/CMakeLists.txt [deleted file]
gst/nnstreamer/tensor_filter/CMakeLists.txt [deleted file]
gst/nnstreamer/tensor_merge/CMakeLists.txt [deleted file]
gst/nnstreamer/tensor_mux/CMakeLists.txt [deleted file]
gst/nnstreamer/tensor_reposink/CMakeLists.txt [deleted file]
gst/nnstreamer/tensor_reposrc/CMakeLists.txt [deleted file]
gst/nnstreamer/tensor_saveload/CMakeLists.txt [deleted file]
gst/nnstreamer/tensor_sink/CMakeLists.txt [deleted file]
gst/nnstreamer/tensor_split/CMakeLists.txt [deleted file]
gst/nnstreamer/tensor_transform/CMakeLists.txt [deleted file]
nnstreamer_example/CMakeLists.txt [deleted file]
nnstreamer_example/custom_example_LSTM/CMakeLists.txt [deleted file]
nnstreamer_example/custom_example_RNN/CMakeLists.txt [deleted file]
nnstreamer_example/custom_example_average/CMakeLists.txt [deleted file]
nnstreamer_example/custom_example_opencv/CMakeLists.txt [deleted file]
nnstreamer_example/custom_example_passthrough/CMakeLists.txt [deleted file]
nnstreamer_example/custom_example_scaler/CMakeLists.txt [deleted file]
tests/CMakeLists.txt [deleted file]
tests/nnstreamer_tensors/tensors_test/CMakeLists.txt [deleted file]

diff --git a/CMakeLists.txt b/CMakeLists.txt
deleted file mode 100644 (file)
index 058eb90..0000000
+++ /dev/null
@@ -1,162 +0,0 @@
-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
-)
diff --git a/gst/nnstreamer/tensor_aggregator/CMakeLists.txt b/gst/nnstreamer/tensor_aggregator/CMakeLists.txt
deleted file mode 100644 (file)
index 14269b5..0000000
+++ /dev/null
@@ -1 +0,0 @@
-ADD_LIBRARY(tensor_aggregatorOBJ OBJECT tensor_aggregator.c)
diff --git a/gst/nnstreamer/tensor_converter/CMakeLists.txt b/gst/nnstreamer/tensor_converter/CMakeLists.txt
deleted file mode 100644 (file)
index e0b4eb2..0000000
+++ /dev/null
@@ -1 +0,0 @@
-ADD_LIBRARY(tensor_converterOBJ OBJECT tensor_converter.c)
diff --git a/gst/nnstreamer/tensor_decoder/CMakeLists.txt b/gst/nnstreamer/tensor_decoder/CMakeLists.txt
deleted file mode 100644 (file)
index 5e13801..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-ADD_LIBRARY(tensor_decoderOBJ OBJECT tensordec.c tensordec-plugins.c
-       tensordec-directvideo.c
-       tensordec-imagelabel.c
-       tensordec-boundingbox.c
-       )
diff --git a/gst/nnstreamer/tensor_demux/CMakeLists.txt b/gst/nnstreamer/tensor_demux/CMakeLists.txt
deleted file mode 100644 (file)
index 00929ec..0000000
+++ /dev/null
@@ -1 +0,0 @@
-ADD_LIBRARY(tensor_demuxOBJ OBJECT gsttensordemux.c )
diff --git a/gst/nnstreamer/tensor_filter/CMakeLists.txt b/gst/nnstreamer/tensor_filter/CMakeLists.txt
deleted file mode 100644 (file)
index 1e72ca7..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-# 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}
-)
diff --git a/gst/nnstreamer/tensor_merge/CMakeLists.txt b/gst/nnstreamer/tensor_merge/CMakeLists.txt
deleted file mode 100644 (file)
index 341d533..0000000
+++ /dev/null
@@ -1 +0,0 @@
-ADD_LIBRARY(tensor_mergeOBJ OBJECT gsttensormerge.c )
diff --git a/gst/nnstreamer/tensor_mux/CMakeLists.txt b/gst/nnstreamer/tensor_mux/CMakeLists.txt
deleted file mode 100644 (file)
index 98687e6..0000000
+++ /dev/null
@@ -1 +0,0 @@
-ADD_LIBRARY(tensor_muxOBJ OBJECT gsttensormux.c )
diff --git a/gst/nnstreamer/tensor_reposink/CMakeLists.txt b/gst/nnstreamer/tensor_reposink/CMakeLists.txt
deleted file mode 100644 (file)
index e6cbab8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-ADD_LIBRARY(tensor_reposinkOBJ OBJECT tensor_reposink.c)
diff --git a/gst/nnstreamer/tensor_reposrc/CMakeLists.txt b/gst/nnstreamer/tensor_reposrc/CMakeLists.txt
deleted file mode 100644 (file)
index fa6272b..0000000
+++ /dev/null
@@ -1 +0,0 @@
-ADD_LIBRARY(tensor_reposrcOBJ OBJECT tensor_reposrc.c )
diff --git a/gst/nnstreamer/tensor_saveload/CMakeLists.txt b/gst/nnstreamer/tensor_saveload/CMakeLists.txt
deleted file mode 100644 (file)
index 14ae2b7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-ADD_LIBRARY(tensor_saveloadOBJ OBJECT tensor_load.c)
diff --git a/gst/nnstreamer/tensor_sink/CMakeLists.txt b/gst/nnstreamer/tensor_sink/CMakeLists.txt
deleted file mode 100644 (file)
index 420c3d7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-ADD_LIBRARY(tensor_sinkOBJ OBJECT tensor_sink.c)
diff --git a/gst/nnstreamer/tensor_split/CMakeLists.txt b/gst/nnstreamer/tensor_split/CMakeLists.txt
deleted file mode 100644 (file)
index 46c4a83..0000000
+++ /dev/null
@@ -1 +0,0 @@
-ADD_LIBRARY(tensor_splitOBJ OBJECT gsttensorsplit.c )
diff --git a/gst/nnstreamer/tensor_transform/CMakeLists.txt b/gst/nnstreamer/tensor_transform/CMakeLists.txt
deleted file mode 100644 (file)
index b7ecd7b..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-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)
diff --git a/nnstreamer_example/CMakeLists.txt b/nnstreamer_example/CMakeLists.txt
deleted file mode 100644 (file)
index 3292612..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-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)
diff --git a/nnstreamer_example/custom_example_LSTM/CMakeLists.txt b/nnstreamer_example/custom_example_LSTM/CMakeLists.txt
deleted file mode 100644 (file)
index 1e5c63f..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-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}
-       )
diff --git a/nnstreamer_example/custom_example_RNN/CMakeLists.txt b/nnstreamer_example/custom_example_RNN/CMakeLists.txt
deleted file mode 100644 (file)
index 2915fe5..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-ADD_LIBRARY(dummyRNN SHARED dummy_RNN.c)
-
-INSTALL(TARGETS dummyRNN
-       LIBRARY DESTINATION ${LIB_INSTALL_DIR}
-       ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
-       )
diff --git a/nnstreamer_example/custom_example_average/CMakeLists.txt b/nnstreamer_example/custom_example_average/CMakeLists.txt
deleted file mode 100644 (file)
index d6774fb..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-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}
-       )
diff --git a/nnstreamer_example/custom_example_opencv/CMakeLists.txt b/nnstreamer_example/custom_example_opencv/CMakeLists.txt
deleted file mode 100644 (file)
index 2d39d90..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-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}
-)
diff --git a/nnstreamer_example/custom_example_passthrough/CMakeLists.txt b/nnstreamer_example/custom_example_passthrough/CMakeLists.txt
deleted file mode 100644 (file)
index 461415b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-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}
-       )
diff --git a/nnstreamer_example/custom_example_scaler/CMakeLists.txt b/nnstreamer_example/custom_example_scaler/CMakeLists.txt
deleted file mode 100644 (file)
index ebb99c5..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-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}
-       )
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
deleted file mode 100644 (file)
index 7ff6139..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-# 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}/
-       )
diff --git a/tests/nnstreamer_tensors/tensors_test/CMakeLists.txt b/tests/nnstreamer_tensors/tensors_test/CMakeLists.txt
deleted file mode 100644 (file)
index 5d55278..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-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})