{"id":21195085,"url":"https://github.com/plusk01/freertos-posix-cmake","last_synced_at":"2026-07-08T10:31:33.922Z","repository":{"id":82488744,"uuid":"482914448","full_name":"plusk01/FreeRTOS-POSIX-CMake","owner":"plusk01","description":"Use CMake to build apps for POSIX/Linux FreeRTOS port","archived":false,"fork":false,"pushed_at":"2022-04-18T16:21:02.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T21:37:12.025Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plusk01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2022-04-18T16:20:46.000Z","updated_at":"2022-04-18T16:21:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"63636a8c-6abf-4903-9200-1e2d02d9d736","html_url":"https://github.com/plusk01/FreeRTOS-POSIX-CMake","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/plusk01/FreeRTOS-POSIX-CMake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusk01%2FFreeRTOS-POSIX-CMake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusk01%2FFreeRTOS-POSIX-CMake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusk01%2FFreeRTOS-POSIX-CMake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusk01%2FFreeRTOS-POSIX-CMake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plusk01","download_url":"https://codeload.github.com/plusk01/FreeRTOS-POSIX-CMake/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusk01%2FFreeRTOS-POSIX-CMake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35262336,"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":[],"created_at":"2024-11-20T19:26:00.810Z","updated_at":"2026-07-08T10:31:33.913Z","avatar_url":"https://github.com/plusk01.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"FreeRTOS-POSIX-CMake Example\n============================\n\nThis repo contains FreeRTOS example applications that run on the [POSIX/Linux port of FreeRTOS](https://www.freertos.org/FreeRTOS-simulator-for-Linux.html).\n\nEach application is created as its own CMake project (in the `apps` directory). The POSIX port is configured in the `cmake/freertos.posix.cmake` file. Each CMake project includes this port file, which (1) downloads the appropriate verion of the FreeRTOS kernel, and (2) adds the kernel and port sources to the CMake project's main target via the `freertos_target_add_kernel` CMake function. For example, the `blinky` demo app has the following in its `CMakeLists.txt`:\n\n```cmake\ninclude(${CMAKE_SOURCE_DIR}/../../cmake/freertos.posix.cmake)\n\nadd_executable(blinky src/main.c src/main_blinky.c src/console.c)\ntarget_include_directories(blinky PRIVATE $\u003cBUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src\u003e)\ntarget_include_directories(blinky PUBLIC $\u003cBUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include\u003e)\ntarget_compile_definitions(blinky PRIVATE projCOVERAGE_TEST=1)\nfreertos_target_add_kernel(blinky)\n```\n\n---\n\nThe goal of this repo is similar to [FreeRTOS-CMake](https://github.com/jonathanmichel/FreeRTOS-CMake) in that CMake is used to build a FreeRTOS application. However, the difference is that this version (1) uses more modern CMake and target-specific functions, (2) better separates the core kernel and the application sources/includes, and (3) is more scalable by abstracting kernel-specific sources into a port-specific cmake file (e.g., `freertos.posix.cmake`).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplusk01%2Ffreertos-posix-cmake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplusk01%2Ffreertos-posix-cmake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplusk01%2Ffreertos-posix-cmake/lists"}