25 lines
1.1 KiB
CMake
Raw Normal View History

2024-01-08 23:37:00 +08:00
project(winsharedutils)
2024-05-01 19:58:58 +08:00
generate_product_version(
versioninfo
NAME "LunaTranslator winsharedutils"
COMPANY_COPYRIGHT "HIllya51 (C) 2024"
VERSION_MAJOR ${VERSION_MAJOR}
VERSION_MINOR ${VERSION_MINOR}
VERSION_PATCH ${VERSION_PATCH}
)
2024-11-05 15:46:45 +08:00
add_library(winsharedutils MODULE mp3enc.cpp webview2_extra.cpp AreoAcrylic.cpp screenshot.cpp ../implsapi.cpp hwnd.cpp globalmessagelistener.cpp theme.cpp version.cpp otsu.cpp clipboard.cpp lnk.cpp levenshtein.cpp muteprocess.cpp sapi_dll.cpp simplemecab.cpp
applicationloopbackaudio/runer.cpp applicationloopbackaudio/LoopbackCapture.cpp
SimpleBrowser.cpp MWebBrowser.cpp icon.cpp ${versioninfo})
2024-05-03 01:54:36 +08:00
target_precompile_headers(winsharedutils REUSE_FROM pch)
2024-11-15 03:30:21 +08:00
target_link_libraries(winsharedutils tinymp3 rapidfuzz wil webview2 Mfplat mfuuid Mmdevapi ${YY_Thunks_for_WinXP})
2024-11-05 15:46:45 +08:00
target_link_options(winsharedutils PRIVATE "/DELAYLOAD:Mmdevapi.dll")
target_link_options(winsharedutils PRIVATE "/DELAYLOAD:Mfplat.dll")
2024-01-08 23:37:00 +08:00
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
set_target_properties(winsharedutils PROPERTIES OUTPUT_NAME "winsharedutils64")
else()
set_target_properties(winsharedutils PROPERTIES OUTPUT_NAME "winsharedutils32")
endif()