{"id":26172634,"url":"https://github.com/gmitch215/cmakekt","last_synced_at":"2025-09-05T03:33:01.887Z","repository":{"id":281853171,"uuid":"946070377","full_name":"gmitch215/cmakekt","owner":"gmitch215","description":"⚙️ A CMake Plugin to generate Kotlin/Native Bindings","archived":false,"fork":false,"pushed_at":"2025-08-18T11:53:12.000Z","size":92,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-18T13:31:29.949Z","etag":null,"topics":["c","cmake","cpp","kotlin","kotlin-native"],"latest_commit_sha":null,"homepage":"https://docs.gmitch215.dev/cmakekt","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/gmitch215.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},"funding":{"patreon":"gmitch215","liberapay":"gmitch215","buy_me_a_coffee":"gmitch215"}},"created_at":"2025-03-10T15:05:16.000Z","updated_at":"2025-08-18T11:52:59.000Z","dependencies_parsed_at":"2025-03-11T14:23:35.126Z","dependency_job_id":"5ae57e0c-6ef1-4afb-9b76-3358c66b12c9","html_url":"https://github.com/gmitch215/cmakekt","commit_stats":null,"previous_names":["gmitch215/cmakekt"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/gmitch215/cmakekt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmitch215%2Fcmakekt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmitch215%2Fcmakekt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmitch215%2Fcmakekt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmitch215%2Fcmakekt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gmitch215","download_url":"https://codeload.github.com/gmitch215/cmakekt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmitch215%2Fcmakekt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273707303,"owners_count":25153724,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"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":["c","cmake","cpp","kotlin","kotlin-native"],"created_at":"2025-03-11T19:57:40.047Z","updated_at":"2025-09-05T03:32:56.869Z","avatar_url":"https://github.com/gmitch215.png","language":"CMake","funding_links":["https://patreon.com/gmitch215","https://liberapay.com/gmitch215","https://buymeacoffee.com/gmitch215"],"categories":[],"sub_categories":[],"readme":"# ⚙️ cmakekt\n\n\u003e CMake plugin for Kotlin/Native Bindings\n\nThis repository contains the source code for **CMakeKt**, a CMake plugin to generate Kotlin/Native bindings from your C project. C++ projects are not supported by Kotlin/Native.\n\n## Installation\n\nYou have a few options:\n\n- Clone this repository and include the `CMakeKt.cmake` file in your project.\n\n```bash\ngit clone https://github.com/gmitch215/cmakekt.git\ncd cmakekt\n\n# Run the install script, may require sudo\nsudo cmake --build . --target install\n\n# Alternatively, Copy the CMakeKt.cmake file to your project\ncp CMakeKt.cmake /path/to/your/project\n```\n\n- Download an archive of the repository from the [releases page](https://github.com/gmitch215/cmakekt), extract it, and include the `CMakeKt.cmake` file in your project.\n\n```bash\nwget -O cmakekt.zip \u003curl\u003e\n\nunzip cmakekt.zip\ncd cmakekt\n\n# Copy the CMakeKt.cmake file to your project\ncp CMakeKt.cmake /path/to/your/project\n```\n\n- Copy the contents of the `CMakeKt.cmake` file and paste it into your project.\n\n## Getting Started\n\nSimply include the `CMakeKt.cmake` file in your CMake project and call the `include(CMakeKt)` function.\n\n```cmake\ninclude(CMakeKt)\n```\n\nThe plugin will create a `klib` target that is enabled by default. It will create a `.klib` file in `build/cinterop/` that you can include in your Kotlin project.\n\nYou can learn how to configure the plugin using the documentation [here](https://docs.gmitch215.dev/cmakekt/).\n\n## Troubleshooting\n\n### `/bin/sh: 1: cinterop: not found`\n\nYou need to add the `cinterop` and `run_konan` paths to your `PATH` environment variable. You can do this by adding the following to your `.bashrc` or `.zshrc` file.\n\n```bash\n# kotlin-native\nexport KOTLIN_NATIVE_HOME=\"/opt/kotlin-native/kotlin-native-2.1.10\"\nexport PATH=\"$PATH:$KOTLIN_NATIVE_HOME/bin\"\n```\n\nIf you are prepending `sudo` to the cmake command, you need to create a symantic link so `sudo` can find the command.\n\n```bash\nsudo ln -s $KOTLIN_NATIVE_HOME/bin/cinterop /usr/local/bin/cinterop\nsudo ln -s $KOTLIN_NATIVE_HOME/bin/run_konan /usr/local/bin/run_konan\nsudo ln -s $KOTLIN_NATIVE_HOME/bin/kotlinc-native /usr/local/bin/kotlinc-native\n```\n\n### `Operation not permitted`\n\nPrepend `sudo` to the cmake command.\n\n```bash\nsudo cmake --build .\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmitch215%2Fcmakekt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgmitch215%2Fcmakekt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmitch215%2Fcmakekt/lists"}