LunaTranslator/cpp/winrtutils/CMakeLists.txt

22 lines
635 B
CMake
Raw Normal View History

2024-01-08 23:37:00 +08:00
project(winrtutils)
2024-05-01 19:58:58 +08:00
generate_product_version(
versioninfo
NAME "LunaTranslator winrtutils"
COMPANY_COPYRIGHT "HIllya51 (C) 2024"
VERSION_MAJOR ${VERSION_MAJOR}
VERSION_MINOR ${VERSION_MINOR}
VERSION_PATCH ${VERSION_PATCH}
)
2024-01-08 23:37:00 +08:00
2024-11-10 19:19:58 +08:00
add_library(winrtutils MODULE winrtsnapshot.cpp winrtocr.cpp livecaptions.cpp ${versioninfo})
2024-05-03 01:54:36 +08:00
target_precompile_headers(winrtutils REUSE_FROM pch)
2024-11-15 07:57:15 +08:00
target_link_libraries(winrtutils wil dwmapi)
2024-01-08 23:37:00 +08:00
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
set_target_properties(winrtutils PROPERTIES OUTPUT_NAME "winrtutils64")
else()
set_target_properties(winrtutils PROPERTIES OUTPUT_NAME "winrtutils32")
endif()