An open API service indexing awesome lists of open source software.

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.

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