From 6ddf2a066039252770f534ac89cb2b5cd4834775 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Wed, 13 Dec 2017 18:37:46 -0800 Subject: Adding UWP to CMake (in progress) --- unityplugin/GhostCubeScene/CMakeLists.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'unityplugin/GhostCubeScene') 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) "\"$\"" "\"$\"") +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 -- cgit v1.2.3