Refactor the CMakeLists for all the samples; use vulkan.hpp/vulkan_raii.hpp as precompiled header.

This commit is contained in:
asuessenbach
2022-08-10 11:19:06 +02:00
parent 1a64b5fcc0
commit 5480d192f5
200 changed files with 299 additions and 2068 deletions

View File

@@ -15,9 +15,8 @@
// VulkanHpp Samples : 01_InitInstance
// Create and destroy a vk::Instance
#include "vulkan/vulkan.hpp"
#include <iostream>
#include <vulkan/vulkan.hpp>
static std::string AppName = "01_InitInstance";
static std::string EngineName = "Vulkan.hpp";

View File

@@ -14,26 +14,4 @@
cmake_minimum_required(VERSION 3.2)
if(NOT SAMPLES_BUILD_ONLY_DYNAMIC)
project(01_InitInstance)
set(HEADERS
)
set(SOURCES
01_InitInstance.cpp
)
source_group(headers FILES ${HEADERS})
source_group(sources FILES ${SOURCES})
add_executable(01_InitInstance
${HEADERS}
${SOURCES}
)
set_target_properties(01_InitInstance PROPERTIES FOLDER "Samples")
target_link_libraries(01_InitInstance PRIVATE utils)
endif()
vulkan_hpp__setup_sample_static( NAME 01_InitInstance )