LunaTranslator/cpp/exec/CMakeLists.txt
恍兮惚兮 4d9840ae68 .
2025-01-04 07:28:06 +08:00

19 lines
700 B
CMake

project(LUNA)
option(PYSTAND_CONSOLE "Build PyStand as a console application." OFF)
set(sources PyStand.cpp luna.rc ${versioninfo})
add_executable(LunaTranslator_debug ${sources})
target_compile_definitions(LunaTranslator_debug PRIVATE PYSTAND_CONSOLE)
add_executable(LunaTranslator WIN32 ${sources})
if(NOT WINXP)
add_executable(LunaTranslator_admin WIN32 ${sources})
set_target_properties(LunaTranslator_admin PROPERTIES LINK_FLAGS " /MANIFESTUAC:\"level='requireAdministrator' uiAccess='false'\" ")
target_precompile_headers(LunaTranslator_admin REUSE_FROM pch)
endif()
target_precompile_headers(LunaTranslator REUSE_FROM pch)
target_precompile_headers(LunaTranslator_debug REUSE_FROM pch)