summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0007-Install-sample-apps-and-format_reader-library.patch
blob: 6f0eb51704345bbccd829ea828803f3a146e2de5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
From d96a9413face4e8540400848d9a25a5458bad74a Mon Sep 17 00:00:00 2001
From: "Brett T. Warden" <brett.t.warden@intel.com>
Date: Mon, 28 Jan 2019 13:58:03 -0800
Subject: [PATCH] Install sample apps and format_reader library

Make sure that we install format_reader library as well.

Upstream-Status: Submitted

Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com>
---
 inference-engine/samples/classification_sample/CMakeLists.txt           | 1 +
 inference-engine/samples/classification_sample_async/CMakeLists.txt     | 1 +
 inference-engine/samples/common/format_reader/CMakeLists.txt            | 1 +
 inference-engine/samples/hello_autoresize_classification/CMakeLists.txt | 1 +
 inference-engine/samples/hello_classification/CMakeLists.txt            | 1 +
 inference-engine/samples/hello_request_classification/CMakeLists.txt    | 1 +
 inference-engine/samples/object_detection_sample_ssd/CMakeLists.txt     | 1 +
 inference-engine/samples/style_transfer_sample/CMakeLists.txt           | 1 +
 inference-engine/samples/validation_app/CMakeLists.txt                  | 1 +
 9 files changed, 9 insertions(+)

diff --git a/inference-engine/samples/classification_sample/CMakeLists.txt b/inference-engine/samples/classification_sample/CMakeLists.txt
index 1dab0c9..b2c67ea 100644
--- a/inference-engine/samples/classification_sample/CMakeLists.txt
+++ b/inference-engine/samples/classification_sample/CMakeLists.txt
@@ -16,6 +16,7 @@ link_directories(${LIB_FOLDER})
 
 # Create library file from sources.
 add_executable(${TARGET_NAME} ${SRC})
+install(TARGETS ${TARGET_NAME} DESTINATION bin)
 
 set_target_properties(${TARGET_NAME} PROPERTIES "CMAKE_CXX_FLAGS" "${CMAKE_CXX_FLAGS} -fPIE"
 COMPILE_PDB_NAME ${TARGET_NAME})
diff --git a/inference-engine/samples/classification_sample_async/CMakeLists.txt b/inference-engine/samples/classification_sample_async/CMakeLists.txt
index 9e37440..3fc0082 100644
--- a/inference-engine/samples/classification_sample_async/CMakeLists.txt
+++ b/inference-engine/samples/classification_sample_async/CMakeLists.txt
@@ -16,6 +16,7 @@ link_directories(${LIB_FOLDER})
 
 # Create library file from sources.
 add_executable(${TARGET_NAME} ${SRC})
+install(TARGETS ${TARGET_NAME} DESTINATION bin)
 
 set_target_properties(${TARGET_NAME} PROPERTIES "CMAKE_CXX_FLAGS" "${CMAKE_CXX_FLAGS} -fPIE"
 COMPILE_PDB_NAME ${TARGET_NAME})
diff --git a/inference-engine/samples/common/format_reader/CMakeLists.txt b/inference-engine/samples/common/format_reader/CMakeLists.txt
index e3ecd58..cc30fec 100644
--- a/inference-engine/samples/common/format_reader/CMakeLists.txt
+++ b/inference-engine/samples/common/format_reader/CMakeLists.txt
@@ -35,6 +35,7 @@ source_group("include" FILES ${LIBRARY_HEADERS})
 
 # Create library file from sources.
 add_library(${TARGET_NAME} SHARED ${MAIN_SRC} ${LIBRARY_HEADERS})
+install(TARGETS ${TARGET_NAME} DESTINATION lib)
 target_link_libraries(${TARGET_NAME} ${OpenCV_LIBRARIES})
 
 if(CMAKE_VERSION VERSION_LESS "2.8.11")
diff --git a/inference-engine/samples/hello_autoresize_classification/CMakeLists.txt b/inference-engine/samples/hello_autoresize_classification/CMakeLists.txt
index 01deda6..5ef2900 100644
--- a/inference-engine/samples/hello_autoresize_classification/CMakeLists.txt
+++ b/inference-engine/samples/hello_autoresize_classification/CMakeLists.txt
@@ -21,6 +21,7 @@ link_directories(${LIB_FOLDER})
 
 # Create library file from sources.
 add_executable(${TARGET_NAME} ${SRC})
+install(TARGETS ${TARGET_NAME} DESTINATION bin)
 
 set_target_properties(${TARGET_NAME} PROPERTIES "CMAKE_CXX_FLAGS" "${CMAKE_CXX_FLAGS} -fPIE"
                       COMPILE_PDB_NAME ${TARGET_NAME})
diff --git a/inference-engine/samples/hello_classification/CMakeLists.txt b/inference-engine/samples/hello_classification/CMakeLists.txt
index 845f7e9..276be87 100644
--- a/inference-engine/samples/hello_classification/CMakeLists.txt
+++ b/inference-engine/samples/hello_classification/CMakeLists.txt
@@ -23,6 +23,7 @@ link_directories(${LIB_FOLDER})
 
 # Create library file from sources.
 add_executable(${TARGET_NAME} ${SRC})
+install(TARGETS ${TARGET_NAME} DESTINATION bin)
 
 if(WIN32)
 	# This target supports UNICODE on Windows
diff --git a/inference-engine/samples/hello_request_classification/CMakeLists.txt b/inference-engine/samples/hello_request_classification/CMakeLists.txt
index c7dbb1e..3e5ab8f 100644
--- a/inference-engine/samples/hello_request_classification/CMakeLists.txt
+++ b/inference-engine/samples/hello_request_classification/CMakeLists.txt
@@ -23,6 +23,7 @@ link_directories(${LIB_FOLDER})
 
 # Create library file from sources.
 add_executable(${TARGET_NAME} ${SRC})
+install(TARGETS ${TARGET_NAME} DESTINATION bin)
 
 set_target_properties(${TARGET_NAME} PROPERTIES "CMAKE_CXX_FLAGS" "${CMAKE_CXX_FLAGS} -fPIE"
 COMPILE_PDB_NAME ${TARGET_NAME})
diff --git a/inference-engine/samples/object_detection_sample_ssd/CMakeLists.txt b/inference-engine/samples/object_detection_sample_ssd/CMakeLists.txt
index 436edc2..adba758 100644
--- a/inference-engine/samples/object_detection_sample_ssd/CMakeLists.txt
+++ b/inference-engine/samples/object_detection_sample_ssd/CMakeLists.txt
@@ -21,6 +21,7 @@ link_directories(${LIB_FOLDER})
 
 # Create library file from sources.
 add_executable(${TARGET_NAME} ${MAIN_SRC} ${MAIN_HEADERS})
+install(TARGETS ${TARGET_NAME} DESTINATION bin)
 
 add_dependencies(${TARGET_NAME} gflags)
 
diff --git a/inference-engine/samples/style_transfer_sample/CMakeLists.txt b/inference-engine/samples/style_transfer_sample/CMakeLists.txt
index ac2a170..d8e624b 100644
--- a/inference-engine/samples/style_transfer_sample/CMakeLists.txt
+++ b/inference-engine/samples/style_transfer_sample/CMakeLists.txt
@@ -22,6 +22,7 @@ link_directories(${LIB_FOLDER})
 
 # Create library file from sources.
 add_executable(${TARGET_NAME} ${MAIN_SRC} ${MAIN_HEADERS})
+install(TARGETS ${TARGET_NAME} DESTINATION bin)
 
 add_dependencies(${TARGET_NAME} gflags)
 
diff --git a/inference-engine/samples/validation_app/CMakeLists.txt b/inference-engine/samples/validation_app/CMakeLists.txt
index 87b337c..07f48b7 100644
--- a/inference-engine/samples/validation_app/CMakeLists.txt
+++ b/inference-engine/samples/validation_app/CMakeLists.txt
@@ -36,6 +36,7 @@ link_directories(${LIB_FOLDER})
 
 # Create library file from sources.
 add_executable(${TARGET_NAME} ${MAIN_SRC} ${MAIN_HEADERS})
+install(TARGETS ${TARGET_NAME} DESTINATION bin)
 
 set_target_properties(${TARGET_NAME} PROPERTIES "CMAKE_CXX_FLAGS" "${CMAKE_CXX_FLAGS} -fPIE" 
 COMPILE_PDB_NAME ${TARGET_NAME})