This commit is contained in:
恍兮惚兮 2024-11-15 03:09:24 +08:00
parent 097895db36
commit 6b7bbe0099

View File

@ -18,7 +18,7 @@ set(sources PyStand.cpp luna.rc ${versioninfo})
add_executable(LunaTranslator_debug ${sources}) add_executable(LunaTranslator_debug ${sources})
target_compile_definitions(LunaTranslator_debug PRIVATE PYSTAND_CONSOLE) target_compile_definitions(LunaTranslator_debug PRIVATE PYSTAND_CONSOLE)
add_executable(LunaTranslator WIN32 ${sources}) add_executable(LunaTranslator WIN32 ${sources})
if(not WINXP) if(NOT WINXP)
add_executable(LunaTranslator_admin WIN32 ${sources}) add_executable(LunaTranslator_admin WIN32 ${sources})
set_target_properties(LunaTranslator_admin PROPERTIES LINK_FLAGS " /MANIFESTUAC:\"level='requireAdministrator' uiAccess='false'\" ") set_target_properties(LunaTranslator_admin PROPERTIES LINK_FLAGS " /MANIFESTUAC:\"level='requireAdministrator' uiAccess='false'\" ")
target_precompile_headers(LunaTranslator_admin REUSE_FROM pch) target_precompile_headers(LunaTranslator_admin REUSE_FROM pch)