{"id":18644688,"url":"https://github.com/enkisoftware/glfw-cmake-starter","last_synced_at":"2025-10-09T06:03:12.350Z","repository":{"id":37513166,"uuid":"239165516","full_name":"enkisoftware/GLFW-CMake-starter","owner":"enkisoftware","description":"Use CMake to create a project with GLFW - Multi-platform Windows, Linux and MacOS.","archived":false,"fork":false,"pushed_at":"2024-07-16T13:20:11.000Z","size":12,"stargazers_count":167,"open_issues_count":0,"forks_count":44,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-06T00:37:03.954Z","etag":null,"topics":["c","c-plusplus","cmake","cpp","gamedev","glfw","linux","macos","multi-platform","opengl","unix","windows"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enkisoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"dougbinks","patreon":"enkisoftware","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://www.enkisoftware.com/avoyd"}},"created_at":"2020-02-08T16:36:59.000Z","updated_at":"2025-04-04T06:18:08.000Z","dependencies_parsed_at":"2023-12-11T13:00:52.642Z","dependency_job_id":"0cd55f51-d36e-4c1f-af1b-1c317b61b7b9","html_url":"https://github.com/enkisoftware/GLFW-CMake-starter","commit_stats":null,"previous_names":["enkisoftware/glfw-cmake-starter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enkisoftware%2FGLFW-CMake-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enkisoftware%2FGLFW-CMake-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enkisoftware%2FGLFW-CMake-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enkisoftware%2FGLFW-CMake-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enkisoftware","download_url":"https://codeload.github.com/enkisoftware/GLFW-CMake-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248086118,"owners_count":21045280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","c-plusplus","cmake","cpp","gamedev","glfw","linux","macos","multi-platform","opengl","unix","windows"],"created_at":"2024-11-07T06:13:15.537Z","updated_at":"2025-10-09T06:03:07.308Z","avatar_url":"https://github.com/enkisoftware.png","language":"CMake","funding_links":["https://github.com/sponsors/dougbinks","https://patreon.com/enkisoftware","https://www.enkisoftware.com/avoyd","https://www.patreon.com/enkisoftware"],"categories":[],"sub_categories":[],"readme":"Support our work through [GitHub Sponsors](https://github.com/sponsors/dougbinks) or [Patreon](https://www.patreon.com/enkisoftware)\n\n[\u003cimg src=\"https://img.shields.io/static/v1?logo=github\u0026label=Github\u0026message=Sponsor\u0026color=#ea4aaa\" width=\"200\"/\u003e](https://github.com/sponsors/dougbinks)    [\u003cimg src=\"https://c5.patreon.com/external/logo/become_a_patron_button@2x.png\" alt=\"Become a Patron\" width=\"150\"/\u003e](https://www.patreon.com/enkisoftware)\n\n\n# GLFW CMake starter\n\nThis starter project shows how to use CMake to create a project with GLFW. The code is multi-platform and runs on Windows, Linux and MacOS.\n\nGLFW homepage: [glfw.org](https://www.glfw.org/)  \nGLFW on GitHub: [github.com/glfw/glfw](https://www.github.com/glfw/glfw)\n\n## Getting the code\n\nThe easiest way to get hold of the starter code is to run the following command using a shell you can run git from:\n\n```\ngit clone --recursive https://github.com/juliettef/GLFW-CMake-starter\n```\n\nIf you are on Windows you can download git from [git-scm.com/download/win](https://git-scm.com/download/win) and use the right click menu in Windows File Explorer to \"Git Bash here\" and then run git commands.\n\nThis will create the directory _GLFW-CMake-starter_ and get the latest source code, using the ```--recursive``` option to download the GLFW code which is included in the repository as a submodule. If you want to run further git commands from the command line you'll need to cd into the directory:\n\n```\ncd GLFW-CMake-starter\n```\n\nAlternatively you can use a git GUI program such as [Fork](https://git-fork.com/) to get the code. Most of these will automatically download the git submodules.\n\nIf you download the code from GitHub via the \"Download ZIP\" approach, you'll also need to download GLFW into the _glfw_ folder. The correct version can be found by clicking on the _glfw_ folder you see on the [front page of the _GLFW-CMake-starter_ GitHub repository](https://github.com/juliettef/GLFW-CMake-starter).\n\n## Using CMake to create the project\n\nFrom a command prompt in the `GLFW-CMake-starter` directory:\n1. `mkdir build`\n1. `cd build`\n1. `cmake ..` (for MinGW the build system generator needs to be specified using the -G option: `cmake .. -G \"MinGW Makefiles\"`)\n1. Either run `make all` or for Visual Studio open `GLFW-CMake-starter.sln` or for MinGW run `mingw32-make`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenkisoftware%2Fglfw-cmake-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenkisoftware%2Fglfw-cmake-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenkisoftware%2Fglfw-cmake-starter/lists"}