From 8fee8d046705dda0494390b93c09d68a0ce4984e Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 24 Feb 2018 11:24:17 -0800 Subject: Updated cmake files to handle the case when D3D12 is not supported on Win32 --- unityplugin/GhostCubeScene/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'unityplugin') diff --git a/unityplugin/GhostCubeScene/CMakeLists.txt b/unityplugin/GhostCubeScene/CMakeLists.txt index e6cb23a..e657e51 100644 --- a/unityplugin/GhostCubeScene/CMakeLists.txt +++ b/unityplugin/GhostCubeScene/CMakeLists.txt @@ -18,10 +18,12 @@ set(ALL_ASSETS ${SHADERS}) set_source_files_properties(${SHADERS} PROPERTIES VS_TOOL_OVERRIDE "None") -if(PLATFORM_WIN32 OR PLATFORM_UNIVERSAL_WINDOWS) +if(D3D12_SUPPORTED) list(APPEND SOURCE src/GhostCubeSceneResTrsnHelper.cpp) list(APPEND INCLUDE src/GhostCubeSceneResTrsnHelper.h) -elseif(PLATFORM_ANDROID OR PLATFORM_LINUX OR PLATFORM_MACOS OR PLATFORM_IOS) +endif() + +if(PLATFORM_ANDROID OR PLATFORM_LINUX OR PLATFORM_MACOS OR PLATFORM_IOS) list(APPEND SOURCE src/LoadPluginFunctions.cpp) endif() -- cgit v1.2.3