Refactor the CMakeLists for all the samples; use vulkan.hpp/vulkan_raii.hpp as precompiled header.
This commit is contained in:
@@ -14,26 +14,4 @@
|
||||
|
||||
cmake_minimum_required(VERSION 3.2)
|
||||
|
||||
if(NOT SAMPLES_BUILD_ONLY_DYNAMIC)
|
||||
|
||||
project(InstanceVersion)
|
||||
|
||||
set(HEADERS
|
||||
)
|
||||
|
||||
set(SOURCES
|
||||
InstanceVersion.cpp
|
||||
)
|
||||
|
||||
source_group(headers FILES ${HEADERS})
|
||||
source_group(sources FILES ${SOURCES})
|
||||
|
||||
add_executable(InstanceVersion
|
||||
${HEADERS}
|
||||
${SOURCES}
|
||||
)
|
||||
|
||||
set_target_properties(InstanceVersion PROPERTIES FOLDER "Samples")
|
||||
target_link_libraries(InstanceVersion PRIVATE utils)
|
||||
|
||||
endif()
|
||||
vulkan_hpp__setup_sample_static( NAME InstanceVersion )
|
||||
|
||||
@@ -15,10 +15,9 @@
|
||||
// VulkanHpp Samples : InstanceVersion
|
||||
// Get the version of instance-level functionality supported by the implementation.
|
||||
|
||||
#include "vulkan/vulkan.hpp"
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <vulkan/vulkan.hpp>
|
||||
|
||||
std::string decodeAPIVersion( uint32_t apiVersion )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user