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/GhostCubeScene | |
| 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/GhostCubeScene')
| -rw-r--r-- | unityplugin/GhostCubeScene/CMakeLists.txt | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/unityplugin/GhostCubeScene/CMakeLists.txt b/unityplugin/GhostCubeScene/CMakeLists.txt index 4f4aaf9..aa7860c 100644 --- a/unityplugin/GhostCubeScene/CMakeLists.txt +++ b/unityplugin/GhostCubeScene/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION 3.3) +cmake_minimum_required (VERSION 3.8) project(GhostCubeScene CXX) @@ -28,6 +28,9 @@ if(PLATFORM_WIN32) "\"$<TARGET_FILE:GhostCubePlugin-shared>\"" "\"$<TARGET_FILE_DIR:GhostCubeScene>\"") +elseif(PLATFORM_UNIVERSAL_WINDOWS) + add_executable(GhostCubeScene WIN32 ${SOURCE} ${INCLUDE}) + #elseif(APPLE) #add_executable(GhostCubeScene MACOSX_BUNDLE Main.cpp) #elseif(UNIX) @@ -36,6 +39,15 @@ else() message(FATAL_ERROR "Unknown platform") endif() +if(PLATFORM_UNIVERSAL_WINDOWS) + get_emulator_uwp_source(UWP_SOURCE UWP_INCLUDE UWP_INCLUDE_DIR) + source_group("UWP\\src" FILES ${UWP_SOURCE}) + source_group("UWP\\include" FILES ${UWP_INCLUDE}) + target_include_directories(GhostCubeScene PRIVATE ${UWP_INCLUDE_DIR}) + target_sources(GhostCubeScene PRIVATE ${UWP_SOURCE} ${UWP_INCLUDE}) +endif() + + target_include_directories(GhostCubeScene PRIVATE ../GhostCubePlugin/PluginSource/src/Unity |
