crosire / blink

A tool which allows you to edit source code of any MSVC C++ project live at runtime
BSD 2-Clause "Simplified" License
1.09k stars 81 forks source link

Add CMakeLists.txt file #24

Closed Ybalrid closed 5 years ago

Ybalrid commented 5 years ago

I had some issues with the included Visual Studio solution. It was not finding "Windows.h" directly when opened on my system. Re-targeting the windows SDK was necessary, but then it stopped to work again 🤷‍♂️.

CMake is able to generate a Visual Studio solution that is specific to the user's installation of Visual Studio and of the Windows SDK. It is much more flexible.

This PR just adds a CMakeLists.txt file in the root directory that permits to build blink.exe via CMake. This also facilitate automating the build of the project (can just script 2 lines of bash that does CMake -G"Visual Studio 15 2017 win64" . and "CMake --build ." (useful for like, Continuous Integration... 😄 )