aboutsummaryrefslogtreecommitdiffstats
path: root/meta-v1000/recipes-graphics/lunarg-sdk/vulkan-loader-layers/0002-demos-CMakeLists.txt-install-demos.patch
blob: 1ffc283e367ec780fe30db18fb8524fdf530edf8 (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 0ee0a0502b96b46190f6e47243b0a008ff04ebbd Mon Sep 17 00:00:00 2001
From: Awais Belal <awais_belal@mentor.com>
Date: Tue, 4 Sep 2018 14:10:37 +0500
Subject: [PATCH 2/5] demos/CMakeLists.txt: 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 fb5022bf5..5a723805d 100644
--- a/demos/CMakeLists.txt
+++ b/demos/CMakeLists.txt
@@ -148,6 +148,7 @@ if(NOT WIN32)
     if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL ${CMAKE_HOST_SYSTEM_PROCESSOR})
         add_executable(cube cube.c ${PROJECT_SOURCE_DIR}/demos/cube.vert ${PROJECT_SOURCE_DIR}/demos/cube.frag cube.vert.inc cube.frag.inc)
         target_link_libraries(cube ${LIBRARIES})
+        install(TARGETS cube DESTINATION ${CMAKE_INSTALL_BINDIR})
     endif()
 else()
     if (CMAKE_CL_64)
@@ -164,6 +165,7 @@ if(NOT WIN32)
     if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL ${CMAKE_HOST_SYSTEM_PROCESSOR})
         add_executable(cubepp cube.cpp ${PROJECT_SOURCE_DIR}/demos/cube.vert ${PROJECT_SOURCE_DIR}/demos/cube.frag cube.vert.inc cube.frag.inc)
         target_link_libraries(cubepp ${LIBRARIES})
+        install(TARGETS cubepp DESTINATION ${CMAKE_INSTALL_BINDIR})
     endif()
 else()
     if (CMAKE_CL_64)
-- 
2.11.1