 -    DESTINATION lib
 -  )
 -
+-  install(
+-    FILES
+-      cmake/tvm_runtimeConfig.cmake
+-      cmake/tvmConfig.cmake
+-    DESTINATION share/${PROJECT_NAME}/cmake)
+-
    ament_package()
  endif()


Signed-off-by: Martin Jansa <martin.jansa@lge.com>
---
 CMakeLists.txt | 62 --------------------------------------------------
 1 file changed, 62 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6b66f95..0c591b6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,42 +30,6 @@ elseif(${ROS_VERSION} EQUAL 2)
   find_package(ament_cmake REQUIRED)
 endif()
 
-include(ExternalProject)
-
-ExternalProject_Add(tvm-build
-  GIT_REPOSITORY https://github.com/apache/incubator-tvm
-  GIT_TAG v0.7.0
-  GIT_SHALLOW TRUE
-  BUILD_IN_SOURCE TRUE
-  PATCH_COMMAND git apply ${CMAKE_CURRENT_SOURCE_DIR}/config.cmake.patch
-  COMMAND cp <SOURCE_DIR>/cmake/config.cmake <SOURCE_DIR>
-  CONFIGURE_COMMAND ${CMAKE_COMMAND} -DCMAKE_POSITION_INDEPENDENT_CODE=ON
-  INSTALL_COMMAND ""
-)
-

From 7aa8447c2513b6dbc447e6a7196f37a0f2f91aab Mon Sep 17 00:00:00 2001
From: Martin Jansa <martin.jansa@lge.com>
Date: Fri, 18 Dec 2020 07:40:04 -0800
Subject: [PATCH] CMakeLists.txt: use tvm from separate recipe
