I want to take this program: https://github.com/baskiton/Img2STL, open it in visual studio and make an executable. I realize I could get it straight from the release, but I want to learn how to edit it and build myself. When I clone it into visual studio, the folders all have blue padlocks next to them and the build function is grayed out. Thanks!
CodePudding user response:
This repo has a CMakeLists.txt
file in its root, hence this project can be generated and built via CMake.
Generally you download and install CMake and then you have 2 options:
- Use GUI.
- Use your console.
For Windows you can use powershell:
git clone https://github.com/baskiton/Img2STL
cd Img2STL
mdkir build
cd build
cmake ../
CMake uses a Generator to configure your projects. It can be defaulted to use your installed Visual Studio.
Or else, you can use Ninja and Visual Studio Code, or Visual Studio with open folder to open your project.
This should be enough to get you started.