Only set VMA_EXAMPLE_SOURCE_FILES when building sample app

This commit is contained in:
Johannes Schneider 2021-05-31 23:19:17 +02:00
parent 1a25921427
commit 61a2844a4f
No known key found for this signature in database
GPG Key ID: 630166982479CCF3

View File

@ -30,15 +30,15 @@ target_link_libraries(
Vulkan::Vulkan
)
set(VMA_EXAMPLE_SOURCE_FILES
Common.cpp
SparseBindingTest.cpp
Tests.cpp
VulkanSample.cpp
)
if (VMA_BUILD_EXAMPLE_APP)
if(WIN32)
set(VMA_EXAMPLE_SOURCE_FILES
Common.cpp
SparseBindingTest.cpp
Tests.cpp
VulkanSample.cpp
)
add_executable(VmaExample ${VMA_EXAMPLE_SOURCE_FILES})
# Visual Studio specific settings