2024-01-08 23:37:00 +08:00
|
|
|
|
|
|
|
project(LUNA)
|
|
|
|
|
2024-05-01 14:59:50 +08:00
|
|
|
option(PYSTAND_CONSOLE "Build PyStand as a console application." OFF)
|
2024-01-08 23:37:00 +08:00
|
|
|
|
2024-05-01 14:59:50 +08:00
|
|
|
# sources
|
|
|
|
set(sources PyStand.cpp luna.rc)
|
2024-01-08 23:37:00 +08:00
|
|
|
|
2024-05-01 14:59:50 +08:00
|
|
|
add_executable(LunaTranslator_debug ${sources})
|
|
|
|
target_compile_definitions(LunaTranslator_debug PRIVATE PYSTAND_CONSOLE)
|
|
|
|
add_executable(LunaTranslator WIN32 ${sources})
|
|
|
|
add_executable(LunaTranslator_admin WIN32 ${sources})
|
|
|
|
set_target_properties(LunaTranslator_admin PROPERTIES LINK_FLAGS " /MANIFESTUAC:\"level='requireAdministrator' uiAccess='false'\" ")
|