Add vcpkg.cmake for Windows

- Add definition `-DMICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS=0`.
- Set target architecture to `x64`.
- Configure CRT and library linkage to `dynamic`.
This commit is contained in:
Justin Scofield
2024-12-30 09:52:46 -05:00
parent 59e59f8a38
commit bad10fff2b
2 changed files with 14 additions and 0 deletions

6
cmake/vcpkg.cmake Normal file
View File

@@ -0,0 +1,6 @@
add_definitions("-DMICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS=0")
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)