Use {{projectName}} as BINARY_NAME and CMake project name in UWP template (#87859)

This commit is contained in:
moko256 2021-08-27 09:11:05 +09:00 committed by GitHub
parent 91ef92d2b2
commit d0bfe170bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -82,3 +82,4 @@ Alexis Rouillard <contact@arouillard.fr>
Mirko Mucaria <skogsfrae@gmail.com>
Karol Czeryna <karol.czeryna@gmail.com>
Callum Moffat <callum@moffatman.com>
Koutaro Mori <koutaro.mo@gmail.com>

View File

@ -4,11 +4,11 @@ set(CMAKE_SYSTEM_VERSION 10.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
project(runner LANGUAGES CXX)
project({{projectName}} LANGUAGES CXX)
cmake_policy(SET CMP0079 NEW)
set(BINARY_NAME "app")
set(BINARY_NAME "{{projectName}}")
# Configure build options.
get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)

View File

@ -142,7 +142,7 @@
"templates/app_shared/windows.tmpl/runner/utils.h",
"templates/app_shared/windows.tmpl/runner/win32_window.cpp",
"templates/app_shared/windows.tmpl/runner/win32_window.h",
"templates/app_shared/winuwp.tmpl/CMakeLists.txt",
"templates/app_shared/winuwp.tmpl/CMakeLists.txt.tmpl",
"templates/app_shared/winuwp.tmpl/flutter/CMakeLists.txt",
"templates/app_shared/winuwp.tmpl/project_version",
"templates/app_shared/winuwp.tmpl/runner_uwp/appxmanifest.in",