mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-26 07:04:12 +08:00
22 lines
618 B
CMake
22 lines
618 B
CMake
|
|
project(winrtutils)
|
|
|
|
generate_product_version(
|
|
versioninfo
|
|
NAME "LunaTranslator winrtutils"
|
|
COMPANY_COPYRIGHT "HIllya51 (C) 2024"
|
|
VERSION_MAJOR ${VERSION_MAJOR}
|
|
VERSION_MINOR ${VERSION_MINOR}
|
|
VERSION_PATCH ${VERSION_PATCH}
|
|
)
|
|
|
|
add_library(winrtutils MODULE winrtsnapshot.cpp winrtocr.cpp ${versioninfo})
|
|
target_precompile_headers(winrtutils REUSE_FROM pch)
|
|
target_link_libraries(winrtutils wil dwmapi)
|
|
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()
|
|
|