15 lines
782 B
CMake
Raw Normal View History

2024-01-08 23:37:00 +08:00
project(winsharedutils)
2025-01-08 13:47:46 +08:00
add_library(winsharedutils MODULE clipboard.cpp 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
2024-11-05 15:46:45 +08:00
applicationloopbackaudio/runer.cpp applicationloopbackaudio/LoopbackCapture.cpp
SimpleBrowser.cpp MWebBrowser.cpp icon.cpp ${versioninfo})
2024-11-15 03:37:53 +08:00
target_precompile_headers(winsharedutils REUSE_FROM pch)
if(NOT WINXP)
2024-12-30 14:15:24 +08:00
target_link_libraries(winsharedutils rapidfuzz wil webview2 Mfplat mfuuid Mmdevapi dwmapi)
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-11-15 03:37:53 +08:00
else()
2025-01-04 17:59:00 +08:00
target_link_libraries(winsharedutils ${YY_Thunks_for_WinXP})
2025-01-03 13:20:03 +08:00
endif()