diff options
Diffstat (limited to 'unityplugin')
| -rw-r--r-- | unityplugin/GhostCubeScene/CMakeLists.txt | 6 |
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() |
