aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amdfalconx86/recipes-graphics/vulkan/vulkan-loader-layers/0005-install-demos.patch
blob: 08f0f8f0b95cd1d866864da221e4ae93b5cfab5e (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
From 15f3a15ce6d65714f7901eab118a13d9d70a9a3b Mon Sep 17 00:00:00 2001
From: Awais Belal <awais_belal@mentor.com>
Date: Tue, 30 Aug 2016 15:17:55 +0500
Subject: [PATCH] install demos

Install demos to the target.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
---
 demos/CMakeLists.txt       | 2 ++
 demos/smoke/CMakeLists.txt | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/demos/CMakeLists.txt b/demos/CMakeLists.txt
index 9fdabf8..42e5499 100644
--- a/demos/CMakeLists.txt
+++ b/demos/CMakeLists.txt
@@ -136,5 +136,8 @@ else()
     target_link_libraries(cube ${LIBRARIES} )
 endif()
 
+install(TARGETS cube DESTINATION ${CMAKE_INSTALL_BINDIR})
+install(TARGETS tri DESTINATION ${CMAKE_INSTALL_BINDIR})
+install(TARGETS vulkaninfo DESTINATION ${CMAKE_INSTALL_BINDIR})
 add_subdirectory(smoke)
 
diff --git a/demos/smoke/CMakeLists.txt b/demos/smoke/CMakeLists.txt
index 4dc90cd..415ac2f 100644
--- a/demos/smoke/CMakeLists.txt
+++ b/demos/smoke/CMakeLists.txt
@@ -85,3 +85,5 @@ add_executable(smoketest ${sources})
 target_compile_definitions(smoketest ${definitions})
 target_include_directories(smoketest ${includes})
 target_link_libraries(smoketest ${libraries})
+
+install(TARGETS smoketest DESTINATION ${CMAKE_INSTALL_BINDIR})
diff --git a/libs/vkjson/CMakeLists.txt b/libs/vkjson/CMakeLists.txt
index 4c0aef8..9b03d3d 100644
--- a/libs/vkjson/CMakeLists.txt
+++ b/libs/vkjson/CMakeLists.txt
@@ -32,6 +32,8 @@ if(UNIX)
     set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-sign-compare")
     add_executable(vkjson_unittest vkjson_unittest.cc)
     add_executable(vkjson_info vkjson_info.cc)
+    install(TARGETS vkjson_unittest DESTINATION ${CMAKE_INSTALL_BINDIR})
+    install(TARGETS vkjson_info DESTINATION ${CMAKE_INSTALL_BINDIR})
 else()
     set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
     add_executable(vkjson_unittest vkjson_unittest.cc)
-- 
1.9.1