https://github.com/pit-ray/using-winsdk-with-mingw
CMake scripts to use Windows SDK with MinGW-w64.
https://github.com/pit-ray/using-winsdk-with-mingw
cmake mingw mingw-w64 mingw32 mingw64 windows-sdk
Last synced: 3 months ago
JSON representation
CMake scripts to use Windows SDK with MinGW-w64.
- Host: GitHub
- URL: https://github.com/pit-ray/using-winsdk-with-mingw
- Owner: pit-ray
- License: mit
- Created: 2021-02-09T15:56:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-09T16:15:51.000Z (over 4 years ago)
- Last Synced: 2025-01-13T00:28:21.164Z (4 months ago)
- Topics: cmake, mingw, mingw-w64, mingw32, mingw64, windows-sdk
- Language: CMake
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# using-winsdk-with-mingw
CMake scripts to use Windows SDK with MinGW-w64.## Description
You can use its scripts by copy and paste.This script will set the following value.
```cmake
#Example) C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0
include_directories(${WINDOWS_SDK_INCLUDE_DIR})
```If you include this directory in CMakeLists.txt, you can include Windows SDK headers in C/C++ sources.
```cpp
#if defined(__GNUC__)
#include //distinguish from MinGW one.
#elif
#include
#endif
```This is a hacky approach.
## License
- It is provided by MIT License.## Author
- pit-ray
[Email] pit-ray(at)outlook.com