 -  )
 -
 -find_package( OpenCV REQUIRED )
--install(CODE "execute_process(COMMAND cmake -E make_directory ${CMAKE_INSTALL_PREFIX}/incldue/)")
--install(CODE "execute_process(COMMAND cmake -E copy slic.h ${CMAKE_INSTALL_PREFIX}/incldue/ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/slic-prefix/src/slic/)")
+-install(CODE "execute_process(COMMAND cmake -E make_directory ${CMAKE_INSTALL_PREFIX}/include/)")
+-install(CODE "execute_process(COMMAND cmake -E copy slic.h ${CMAKE_INSTALL_PREFIX}/include/ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/slic-prefix/src/slic/)")
 -
 -install(CODE "execute_process(COMMAND cmake -E make_directory ${CMAKE_INSTALL_PREFIX}/lib/)")
 -install(CODE "execute_process(COMMAND gcc -I${OpenCV_INCLUDE_DIRS} -fPIC --shared -o ${CMAKE_INSTALL_PREFIX}/lib/libslic.so ${CMAKE_CURRENT_BINARY_DIR}/slic-prefix/src/slic/slic.cpp)")

From 4d53e95b5f81871e51cec6f1b6f07a86e9b170cd Mon Sep 17 00:00:00 2001
From: Martin Jansa <martin.jansa@lge.com>
Date: Sun, 26 Apr 2020 12:29:13 -0700
Subject: [PATCH] CMakeLists.txt: fetch slic with bitbake fetcher


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

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 98dea4135..ba8695106 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,18 +11,8 @@ include(ExternalProject)
 # find_package(Boost REQUIRED COMPONENTS system)
 ExternalProject_Add(
   slic
