From 977ee1327cd63089be2051706fe646b07546c963 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sun, 5 May 2019 00:25:24 +0800 Subject: [PATCH] =?UTF-8?q?cmake=E5=B7=A5=E7=A8=8B=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=94=B9=E7=94=A8=E5=AE=8F=E6=8E=A7=E5=88=B6=EF=BC=8C=E6=96=B9?= =?UTF-8?q?=E4=BE=BF=E6=B7=BB=E5=8A=A0=E5=A4=9A=E4=B8=AA=E5=B7=A5=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/Vulkan/CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/example/Vulkan/CMakeLists.txt b/example/Vulkan/CMakeLists.txt index 983ea1c3..c5ddc98c 100644 --- a/example/Vulkan/CMakeLists.txt +++ b/example/Vulkan/CMakeLists.txt @@ -1,2 +1,8 @@ -add_executable(VulkanTest main.cpp ${SHADER_FILES}) -target_link_libraries(VulkanTest ${ULRE}) +macro(CreateProject name main_file) + add_executable(${name} ${main_file}.cpp) + target_link_libraries(${name} ${ULRE}) +endmacro() + +CreateProject(0.triangle main) +CreateProject(1.cube cube) +