{"id":29016505,"url":"https://github.com/memgraph/cmake","last_synced_at":"2026-02-09T08:34:45.195Z","repository":{"id":44752036,"uuid":"450806281","full_name":"memgraph/cmake","owner":"memgraph","description":"This is a collection of CMake modules that are useful for all Memgraph projects.","archived":false,"fork":false,"pushed_at":"2024-09-13T20:55:17.000Z","size":33,"stargazers_count":1,"open_issues_count":9,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-08-25T09:21:54.282Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/memgraph.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,"zenodo":null}},"created_at":"2022-01-22T12:07:07.000Z","updated_at":"2024-09-13T20:55:20.000Z","dependencies_parsed_at":"2024-09-07T18:24:40.774Z","dependency_job_id":"f54d73a9-de99-4b8f-9780-a70ae4e0e410","html_url":"https://github.com/memgraph/cmake","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/memgraph/cmake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Fcmake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Fcmake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Fcmake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Fcmake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/memgraph","download_url":"https://codeload.github.com/memgraph/cmake/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Fcmake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29260060,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T04:11:57.159Z","status":"ssl_error","status_checked_at":"2026-02-09T04:11:56.117Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-06-25T22:30:30.519Z","updated_at":"2026-02-09T08:34:45.155Z","avatar_url":"https://github.com/memgraph.png","language":"CMake","readme":"# Memgraph CMake\n\nThis is a collection of CMake modules that are useful for all Memgraph\nprojects.\n\n## Hints\n\nTo list all targets run `cmake --build . --target help`.\n\n## Possible usages\n\n```\ninclude(FetchContent)\ninclude(ExternalProject)\n\n# Boost\nfile(DOWNLOAD https://raw.githubusercontent.com/memgraph/cmake/main/modules/external-boost.cmake\n     ${CMAKE_BINARY_DIR}/external-boost.cmake)\ninclude(${CMAKE_BINARY_DIR}/external-boost.cmake)\ntarget_link_libraries({{target}} PRIVATE boost_headers boost_thread_static)\n\n# fmtlib\nfile(DOWNLOAD https://raw.githubusercontent.com/memgraph/cmake/main/modules/external-fmt.cmake\n     ${CMAKE_BINARY_DIR}/external-fmt.cmake)\ninclude(${CMAKE_BINARY_DIR}/external-fmt.cmake)\ntarget_link_libraries({{target}} PRIVATE fmtlib_static)\n\n# mgclient\nfile(DOWNLOAD https://raw.githubusercontent.com/memgraph/cmake/main/modules/external-mgclient.cmake\n     ${CMAKE_BINARY_DIR}/external-mgclient.cmake)\ninclude(${CMAKE_BINARY_DIR}/external-mgclient.cmake)\ntarget_link_libraries({{target}} PRIVATE mgclient_shared)\n\n# Google Benchmark\nfile(DOWNLOAD https://raw.githubusercontent.com/memgraph/cmake/main/modules/fetch-gbenchmark.cmake\n     ${CMAKE_BINARY_DIR}/fetch-gbenchmark.cmake)\ninclude(${CMAKE_BINARY_DIR}/fetch-gbenchmark.cmake)\ntarget_link_libraries({{target}} PRIVATE benchmark::benchmark)\n\n# Google Test\nfile(DOWNLOAD https://raw.githubusercontent.com/memgraph/cmake/main/modules/fetch-gtest.cmake\n     ${CMAKE_BINARY_DIR}/fetch-gtest.cmake)\ninclude(${CMAKE_BINARY_DIR}/fetch-gtest.cmake)\ntarget_link_libraries({{target}} PRIVATE gtest gtest_main)\n\n# NLohmann JSON\nfile(DOWNLOAD https://raw.githubusercontent.com/memgraph/cmake/main/modules/fetch-nlohmann.cmake\n     ${CMAKE_BINARY_DIR}/fetch-nlohmann.cmake)\ninclude(${CMAKE_BINARY_DIR}/fetch-nlohmann.cmake)\ntarget_link_libraries({{target}} PRIVATE nlohmann_json::nlohmann_json)\n```\n\n## References\n\n* [CMake Guidelines](https://docs.salome-platform.org/latest/dev/cmake/html/various.html)\n* [FetchContent vs ExternalProject](https://www.scivision.dev/cmake-fetchcontent-vs-external-project)\n  * https://www.jwlawson.co.uk/interest/2020/02/23/cmake-external-project.html\n  * https://coderefinery.github.io/cmake-workshop/fetch-content/\n  * NOTE: It's not easy to combine ExternalProject and find_package because find_package is configure-time, ExternalProject is build-time\n  * NOTE: CMAKE_ARGS does NOT work under FetchContent.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemgraph%2Fcmake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmemgraph%2Fcmake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemgraph%2Fcmake/lists"}