{"repo":"meemknight/cmakeSetup","free":true,"listed":false,"github":"https://github.com/meemknight/cmakeSetup","clone":"git clone https://github.com/meemknight/cmakeSetup.git","description":null,"language":"C++","stars":252,"topics":["cmake","cmake-example","cpp","gamedev","glad","glfw","opengl"],"license":null,"category":"game-templates","readme_excerpt":"cmakeSetup --- What is it? This is a CMake setup that loads glfw, OpenGL, stb image, stb truetype, and a custom 2d library. It works both on Windows and Linux. Why use cmakeSetup? All I do is configure the project in a good way. It is cross-platform, easy to add libraries, and the input and window opening are implemented. All the rest is up to you, with no weird abstractions, you get the init() update(), and close() functions and you do whatever you want with them. --- FULL EXAMPLE VIDEO! LONGER VERSION!! VIDEO ABOUT THE SETUP --- Opening the Solution: Or Running the setup Go to CMakeLists.txt, CTRL + S to make sure the solution was built. Then, from this dropdown select mygame.exe Ctrl + F5 to build ( F5 oppens the debugger, you usually want to press Ctrl + F5 because it oppens faster like this. Adding files: You should add .cpp in src/gameLayer and .h in include/gameLayer. Whenever you add a new file CMake will ask you if you want to add that thing, say NO every time! I am already adding all of the things. If you accidentally say YES, just remove that file from the CMake.lists Refreshing your changes: After you add a file, the changes should be automatically added but if you want to be sure, you can refresh changes by saving the CMake file. If you want to make a hard refresh (you might have to do that sometimes) close Visual Studio, delete the out folder, reopen VS, CTRL + S on CMakeLists.txt How to use: gameLayer.cpp has the game main loop. Add your files in scr/gamelayer ","default_branch":null,"files":null,"tree":[],"storefront":"/r/meemknight","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/meemknight/cmakeSetup/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}