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 19:58:58 +08:00
|
|
|
|
|
|
|
generate_product_version(
|
|
|
|
versioninfo
|
|
|
|
NAME "LunaTranslator"
|
|
|
|
COMPANY_COPYRIGHT "HIllya51 (C) 2024"
|
|
|
|
VERSION_MAJOR ${VERSION_MAJOR}
|
|
|
|
VERSION_MINOR ${VERSION_MINOR}
|
|
|
|
VERSION_PATCH ${VERSION_PATCH}
|
|
|
|
)
|
|
|
|
|
|
|
|
set(sources PyStand.cpp luna.rc ${versioninfo})
|
2024-01-08 23:37:00 +08:00
|
|
|
|
2024-10-09 00:09:15 +08:00
|
|
|
add_executable(LunaTranslator_debug ${sources})
|
|
|
|
target_compile_definitions(LunaTranslator_debug PRIVATE PYSTAND_CONSOLE)
|
2024-05-01 14:59:50 +08:00
|
|
|
add_executable(LunaTranslator WIN32 ${sources})
|
2024-11-15 03:09:24 +08:00
|
|
|
if(NOT WINXP)
|
2024-05-01 14:59:50 +08:00
|
|
|
add_executable(LunaTranslator_admin WIN32 ${sources})
|
2024-05-03 01:54:36 +08:00
|
|
|
set_target_properties(LunaTranslator_admin PROPERTIES LINK_FLAGS " /MANIFESTUAC:\"level='requireAdministrator' uiAccess='false'\" ")
|
|
|
|
target_precompile_headers(LunaTranslator_admin REUSE_FROM pch)
|
2024-11-15 03:04:53 +08:00
|
|
|
endif()
|
|
|
|
target_precompile_headers(LunaTranslator REUSE_FROM pch)
|
|
|
|
target_precompile_headers(LunaTranslator_debug REUSE_FROM pch)
|