summaryrefslogtreecommitdiffstats
path: root/unityplugin
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-02-24 19:24:17 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-02-24 19:24:17 +0000
commit8fee8d046705dda0494390b93c09d68a0ce4984e (patch)
tree9458d8da33e3dcc94921d667da92799f6bcc216d /unityplugin
parentAdded Tutorial00: Hello Linux (diff)
downloadDiligentEngine-8fee8d046705dda0494390b93c09d68a0ce4984e.tar.gz
DiligentEngine-8fee8d046705dda0494390b93c09d68a0ce4984e.zip
Updated cmake files to handle the case when D3D12 is not supported on Win32
Diffstat (limited to 'unityplugin')
-rw-r--r--unityplugin/GhostCubeScene/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
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()