{"id":51522519,"url":"https://github.com/lszl84/wx_cmake_fetchcontent_template","last_synced_at":"2026-07-08T17:01:46.737Z","repository":{"id":220338282,"uuid":"751340357","full_name":"lszl84/wx_cmake_fetchcontent_template","owner":"lszl84","description":"Simplified CMake template C++ GUI projects with automatic dependency downloading","archived":false,"fork":false,"pushed_at":"2025-09-18T13:56:10.000Z","size":608,"stargazers_count":50,"open_issues_count":0,"forks_count":11,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-09-18T16:03:56.937Z","etag":null,"topics":["cmake","cpp","fetchcontent","wxwidgets"],"latest_commit_sha":null,"homepage":"https://www.onlyfastcode.com","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/lszl84.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-02-01T12:18:18.000Z","updated_at":"2025-09-18T13:56:08.000Z","dependencies_parsed_at":"2024-09-09T12:36:42.308Z","dependency_job_id":"8da66ffc-aa86-4964-a7e9-59454fdc2a64","html_url":"https://github.com/lszl84/wx_cmake_fetchcontent_template","commit_stats":null,"previous_names":["lszl84/wx_cmake_fetchcontent_template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lszl84/wx_cmake_fetchcontent_template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lszl84%2Fwx_cmake_fetchcontent_template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lszl84%2Fwx_cmake_fetchcontent_template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lszl84%2Fwx_cmake_fetchcontent_template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lszl84%2Fwx_cmake_fetchcontent_template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lszl84","download_url":"https://codeload.github.com/lszl84/wx_cmake_fetchcontent_template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lszl84%2Fwx_cmake_fetchcontent_template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35271852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cmake","cpp","fetchcontent","wxwidgets"],"created_at":"2026-07-08T17:01:46.016Z","updated_at":"2026-07-08T17:01:46.730Z","avatar_url":"https://github.com/lszl84.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"Download, build and statically link wxWidgets as the GUI library for your C++ project!\n\n[![Video](/output.gif)](https://www.youtube.com/watch?v=zjNg5HdgNO0)\n\nFull Tutorial: https://www.youtube.com/watch?v=zjNg5HdgNO0\n\n```cmake\ncmake_minimum_required(VERSION 3.14 FATAL_ERROR)\n\nproject(wx_cmake_fetchcontent_template LANGUAGES CXX)\n\ninclude(FetchContent)\n\nset(CMAKE_CXX_STANDARD 20)\nset(CMAKE_CXX_STANDARD_REQUIRED ON)\n\nset(wxBUILD_SHARED OFF)\n\nmessage(STATUS \"Fetching wxWidgets...\")\n\nFetchContent_Declare(\n   wxWidgets\n   GIT_REPOSITORY https://github.com/wxWidgets/wxWidgets.git\n   GIT_SHALLOW ON\n)\nFetchContent_MakeAvailable(wxWidgets)\n\nset(SRCS main.cpp)\n\nadd_executable(main WIN32 ${SRCS})\ntarget_link_libraries(main PRIVATE wxcore wxnet)\n```\n\n### System Requirements\n\nTo get started with this project, ensure you have the following tools and libraries:\n\n- **CMake (Version 3.14 or later):** Essential for building and managing the project files.\n- **C++ Compiler:** Compatible with Clang, GCC, or MSVC. Choose one based on your development environment.\n- **GTK3 Development Libraries (for Linux users):** Necessary for GUI development on Linux platforms.\n\n### Building the Project\n\n#### Debug\n\nFollow these steps to build the project:\n\n1. **Create a build directory \u0026 configure the build:**\n   ```bash\n   cmake -S. -Bbuild\n   ```\n\n2. **Build the project:**\n   ```bash\n   cmake --build build -j\n   ```\n\nThis will create a `build` directory and compile all necessary artifacts there. The main executable will be located in `build/`.\n\n#### Release\n\nFor release build use `--config Release` on Windows:\n\n```bash\ncmake -S. -Bbuild\ncmake --build build -j --config Release\n```\n\nArtifacts for both configurations will be generated in the `build` directory.\n\nOn Mac or Linux you'll need to maintain two build trees:\n\n```bash\ncmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Debug\ncmake --build build -j\ncmake -S. -Bbuild-rel -DCMAKE_BUILD_TYPE=Release\ncmake --build build-rel -j\n```\n\n### License\n\nMIT License. Can be used in closed-source commercial products.\n\n---\nCheck out the blog for more! [devmindscape.com](https://devmindscape.com)\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flszl84%2Fwx_cmake_fetchcontent_template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flszl84%2Fwx_cmake_fetchcontent_template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flszl84%2Fwx_cmake_fetchcontent_template/lists"}