diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2017-12-14 02:37:46 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2017-12-14 02:37:46 +0000 |
| commit | 6ddf2a066039252770f534ac89cb2b5cd4834775 (patch) | |
| tree | ed509585835c6d71f3ff5eceaba557704d9905cf /unityplugin/GhostCubePlugin/PluginSource | |
| parent | Merge branch 'master' of https://github.com/DiligentGraphics/DiligentEngine (diff) | |
| download | DiligentEngine-6ddf2a066039252770f534ac89cb2b5cd4834775.tar.gz DiligentEngine-6ddf2a066039252770f534ac89cb2b5cd4834775.zip | |
Adding UWP to CMake (in progress)
Diffstat (limited to 'unityplugin/GhostCubePlugin/PluginSource')
| -rw-r--r-- | unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt b/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt index 8fa2d1e..b1eda3b 100644 --- a/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt +++ b/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION 3.3) +cmake_minimum_required (VERSION 3.8) project(GhostCubePlugin CXX) @@ -39,7 +39,7 @@ add_library(GhostCubePlugin-shared SHARED ${SOURCE} ${INCLUDE} ${UNITY_INTERFACES} ) -if(PLATFORM_WIN32 OR PLATFORM_UNVIRSAL_WINDOWS) +if(PLATFORM_WIN32 OR PLATFORM_UNIVERSAL_WINDOWS) if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8") set(ARCH 64) else("${CMAKE_SIZEOF_VOID_P}" EQUAL "8") @@ -88,6 +88,9 @@ if(MSVC) # Disable MSVC-specific warnings # - w4201: nonstandard extension used: nameless struct/unio target_compile_options(GhostCubePlugin-shared PRIVATE /wd4201) + if(PLATFORM_UNIVERSAL_WINDOWS) + target_compile_definitions(GhostCubePlugin-shared PRIVATE WINDOWS_UWP UNITY_METRO) + endif() # Enable link-time code generation for release builds (I was not able to # find any way to set these settings through interface library BuildSettings) set_target_properties(GhostCubePlugin-shared PROPERTIES |
