mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-13 15:43:53 +08:00
15 lines
768 B
CMake
15 lines
768 B
CMake
|
|
project(winsharedutils)
|
|
|
|
|
|
add_library(winsharedutils MODULE webview2_extra.cpp AreoAcrylic.cpp screenshot.cpp ../implsapi.cpp hwnd.cpp globalmessagelistener.cpp theme.cpp version.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})
|
|
target_precompile_headers(winsharedutils REUSE_FROM pch)
|
|
if(NOT WINXP)
|
|
target_link_libraries(winsharedutils rapidfuzz wil webview2 Mfplat mfuuid Mmdevapi dwmapi)
|
|
target_link_options(winsharedutils PRIVATE "/DELAYLOAD:Mmdevapi.dll")
|
|
target_link_options(winsharedutils PRIVATE "/DELAYLOAD:Mfplat.dll")
|
|
else()
|
|
target_link_libraries(winsharedutils ${YY_Thunks_for_WinXP})
|
|
endif() |