{"id":18513517,"url":"https://github.com/arthursonzogni/opengl_cmake_skeleton","last_synced_at":"2025-04-07T05:12:11.317Z","repository":{"id":25023896,"uuid":"28443290","full_name":"ArthurSonzogni/OpenGL_CMake_Skeleton","owner":"ArthurSonzogni","description":":heart: A ready to use cmake skeleton using GLFW, Glew and glm. :+1:","archived":false,"fork":false,"pushed_at":"2023-08-15T17:20:53.000Z","size":7548,"stargazers_count":295,"open_issues_count":2,"forks_count":45,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-30T22:11:08.973Z","etag":null,"topics":["cmake","cpp","emscripten","example","glew","glfw","glm","opengl","skeleton","template","webassembly"],"latest_commit_sha":null,"homepage":"https://arthursonzogni.com","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArthurSonzogni.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2014-12-24T09:04:03.000Z","updated_at":"2025-03-28T14:24:48.000Z","dependencies_parsed_at":"2024-11-06T15:46:13.529Z","dependency_job_id":"de4f2139-7114-4e06-baa7-e7b582dd023a","html_url":"https://github.com/ArthurSonzogni/OpenGL_CMake_Skeleton","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArthurSonzogni%2FOpenGL_CMake_Skeleton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArthurSonzogni%2FOpenGL_CMake_Skeleton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArthurSonzogni%2FOpenGL_CMake_Skeleton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArthurSonzogni%2FOpenGL_CMake_Skeleton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArthurSonzogni","download_url":"https://codeload.github.com/ArthurSonzogni/OpenGL_CMake_Skeleton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595335,"owners_count":20963943,"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":["cmake","cpp","emscripten","example","glew","glfw","glm","opengl","skeleton","template","webassembly"],"created_at":"2024-11-06T15:38:54.239Z","updated_at":"2025-04-07T05:12:11.290Z","avatar_url":"https://github.com/ArthurSonzogni.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"OpenGL CMake Skeleton [![Build Status](https://travis-ci.org/ArthurSonzogni/OpenGL_CMake_Skeleton.svg?branch=master)](https://travis-ci.org/ArthurSonzogni/OpenGL_CMake_Skeleton)\n=======================\n\nA ready to use C++11 CMake OpenGL skeleton using **GLFW**, **Glew** and **glm**. (use git submodules)\n\nIt compiles on:\n * **WebAssembly**  (on branch webassembly. See instruction below)\n * Linux\n * Windows\n * Mac\n\nIt can compile for the Web with WebAssembly thanks to emscripten, as well as on\nLinux, Windows and Mac.\n\nShader class and example Application are included.\n\n![output result](output.gif)\n\nI am open to any comments and contributions.\n\nClone (With submodules):\n========================\n\n```\ngit clone --recursive git@github.com:ArthurSonzogni/OpenGL_CMake_Skeleton.git\n```\n\nAlternatively, if you don't used the --recursive option, you can type:\n```bash\ngit submodule init\ngit submodule update\n```\n\nusage (WebAssembly) : \n---------------------\nSwitch to the webassembly branch\n```\ngit checkout webassembly\n```\n\nInstall emscripten, then\n```bash\nmkdir build_emscripten\ncd build_emscripten\nemcmake cmake ..\nmake\npython -m SimpleHTTPServer 8000\n```\n\nNow, visit [http://localhost:8000](http://localhost:8000)\n\nusage (Linux) : \n---------------\nInstall some standard library, fetch the project, build and run:\n```bash\nsudo apt-get install cmake libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev\ngit clone --recursive git@github.com:ArthurSonzogni/OpenGL_CMake_Skeleton.git\ncd OpenGL_CMake_Skeleton\nmkdir build\ncd build\ncmake ..\nmake -j\n./opengl-cmake-skeleton\n```\n\nusage (Windows) :\n-----------------\nFor instance :\n* cmake-gui .\n* Configure (Choose for example Visual Studio generator)\n* Generate\nLaunch the generated project in your favorite IDE and run it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthursonzogni%2Fopengl_cmake_skeleton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farthursonzogni%2Fopengl_cmake_skeleton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthursonzogni%2Fopengl_cmake_skeleton/lists"}