Refactor the CMakeLists for all the samples; use vulkan.hpp/vulkan_raii.hpp as precompiled header.
This commit is contained in:
@@ -13,10 +13,9 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
// VulkanHpp Samples : 01_InitInstanceRAII
|
||||
// Create and destroy a vk::UniqueInstance
|
||||
// Create and destroy a vk::raii::Instance
|
||||
|
||||
#include "../utils/utils.hpp"
|
||||
#include "vulkan/vulkan_raii.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@@ -14,26 +14,4 @@
|
||||
|
||||
cmake_minimum_required(VERSION 3.2)
|
||||
|
||||
if(NOT SAMPLES_BUILD_ONLY_DYNAMIC)
|
||||
|
||||
project(RAII_01_InitInstance)
|
||||
|
||||
set(HEADERS
|
||||
)
|
||||
|
||||
set(SOURCES
|
||||
01_InitInstance.cpp
|
||||
)
|
||||
|
||||
source_group(headers FILES ${HEADERS})
|
||||
source_group(sources FILES ${SOURCES})
|
||||
|
||||
add_executable(RAII_01_InitInstance
|
||||
${HEADERS}
|
||||
${SOURCES}
|
||||
)
|
||||
|
||||
set_target_properties(RAII_01_InitInstance PROPERTIES FOLDER "RAII_Samples")
|
||||
target_link_libraries(RAII_01_InitInstance PRIVATE utils)
|
||||
|
||||
endif()
|
||||
vulkan_hpp__setup_sample_raii( NAME 01_InitInstance )
|
||||
|
||||
Reference in New Issue
Block a user