Only set VMA_EXAMPLE_SOURCE_FILES when building sample app
@@ -30,6 +30,8 @@ target_link_libraries(
Vulkan::Vulkan
)
+if (VMA_BUILD_EXAMPLE_APP)
+ if(WIN32)
set(VMA_EXAMPLE_SOURCE_FILES
Common.cpp
SparseBindingTest.cpp
@@ -37,8 +39,6 @@ set(VMA_EXAMPLE_SOURCE_FILES
VulkanSample.cpp
)
-if (VMA_BUILD_EXAMPLE_APP)
- if(WIN32)
add_executable(VmaExample ${VMA_EXAMPLE_SOURCE_FILES})
# Visual Studio specific settings
