{"id":16162520,"url":"https://github.com/sunsided/cmake","last_synced_at":"2025-09-10T05:22:40.133Z","repository":{"id":141992866,"uuid":"127030816","full_name":"sunsided/cmake","owner":"sunsided","description":"A \"Modern CMake\" example project to collect best practices.","archived":false,"fork":false,"pushed_at":"2018-03-27T18:51:24.000Z","size":15,"stargazers_count":42,"open_issues_count":1,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T12:32:57.780Z","etag":null,"topics":["cmake","cpp","cpp11"],"latest_commit_sha":null,"homepage":"","language":"CMake","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/sunsided.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-03-27T18:40:16.000Z","updated_at":"2024-11-17T23:10:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"551dc89d-5b9e-46d5-9ecf-4296413cd57a","html_url":"https://github.com/sunsided/cmake","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fcmake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fcmake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fcmake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fcmake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunsided","download_url":"https://codeload.github.com/sunsided/cmake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243950927,"owners_count":20373664,"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","cpp11"],"created_at":"2024-10-10T02:30:36.993Z","updated_at":"2025-03-18T22:31:08.956Z","avatar_url":"https://github.com/sunsided.png","language":"CMake","readme":"# \"Modern\" CMake Example Project\n\nCMake is anarchy. In order to do it better, here's an\nexample project that contains the following structure:\n\n- A library `foo` that privately depends on \n  `Boost::date_time` and provides some functionality.\n- A library `bar` that solely depends on `foo`.\n- An executable `baz` that calls a method in `bar`.\n\nAll projects are set up in a way that they can be installed\nand found using `find_package()`, as well as added\nusing `add_subdirectory()`. The `CMakeLists.txt` files\nare heavily documented, but care should be taken to\nalso have a look at the `cmake/*-cmake.in` files of\nthe individual libraries.\n\nEach installation is versioned, allowing for keeping\nmultiple different versions at the same time.\nLikewise, installation paths are prefixed with the build\nconfiguration.\n\n## References\n\nBlog posts and repositories that helped in assembling\nthis:\n\n- [It's Time To Do CMake Right](https://pabloariasal.github.io/2018/02/19/its-time-to-do-cmake-right/)\n  by Pablo Arias and the companion repo\n- [modern-cmake-sample](https://github.com/pabloariasal/modern-cmake-sample), as well as\n- [Easily supporting CMake install and find_package()](https://foonathan.net/blog/2016/03/03/cmake-install.html)\n  by Jonathan Müller.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunsided%2Fcmake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunsided%2Fcmake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunsided%2Fcmake/lists"}