LunaTranslator/plugins/exec/CMakeLists.txt
恍兮惚兮 0c0d6c0132 plugins
2024-01-29 12:20:07 +08:00

13 lines
492 B
CMake
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

project(LUNA)
add_executable(LunaTranslator luna.cpp luna.rc)
#target_link_options(LunaTranslator PRIVATE /MANIFESTUAC:level="asInvoker")
add_executable(LunaTranslator_admin luna.cpp luna.rc)
set_target_properties(LunaTranslator_admin PROPERTIES LINK_FLAGS " /MANIFESTUAC:\"level='requireAdministrator' uiAccess='false'\" ")
#target_link_options(LunaTranslator_admin PRIVATE /MANIFESTUAC:level="requireAdministrator")
#这个仅在visualstdio下管用vscode cmake不管用了。