aboutsummaryrefslogtreecommitdiffstats
path: root/meta-v1000/recipes-graphics/lunarg-sdk/vulkan-loader-layers/0002-install-demos.patch
blob: 7dbc2c2384dddddb6512bfa6b40d6526bfe725d6 (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
From 4ed362554e375b0be8d3b03ec8f11cff97677f7f Mon Sep 17 00:00:00 2001
From: Awais Belal <awais_belal@mentor.com>
Date: Wed, 31 May 2017 13:42:07 +0500
Subject: [PATCH 2/3] install demos

Install demos to the target.

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

diff --git a/demos/CMakeLists.txt b/demos/CMakeLists.txt
index 472d1528b..e9e0619a0 100644
--- a/demos/CMakeLists.txt
+++ b/demos/CMakeLists.txt
@@ -120,6 +120,7 @@ if(NOT WIN32)
     if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL ${CMAKE_HOST_SYSTEM_PROCESSOR})
         add_executable(cube cube.c ${CMAKE_BINARY_DIR}/demos/cube-vert.spv ${CMAKE_BINARY_DIR}/demos/cube-frag.spv)
         target_link_libraries(cube ${LIBRARIES})
+        install(TARGETS cube DESTINATION ${CMAKE_INSTALL_BINDIR})
     endif()
 else()
     if (CMAKE_CL_64)
@@ -136,6 +137,7 @@ if(NOT WIN32)
     if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL ${CMAKE_HOST_SYSTEM_PROCESSOR})
         add_executable(cubepp cube.cpp ${CMAKE_BINARY_DIR}/demos/cube-vert.spv ${CMAKE_BINARY_DIR}/demos/cube-frag.spv)
         target_link_libraries(cubepp ${LIBRARIES})
+        install(TARGETS cubepp DESTINATION ${CMAKE_INSTALL_BINDIR})
     endif()
 else()
     if (CMAKE_CL_64)
-- 
2.11.1