{"id":18439214,"url":"https://github.com/ierturk/cmake-emscripten-project","last_synced_at":"2025-10-17T15:23:30.418Z","repository":{"id":205897075,"uuid":"319169001","full_name":"ierturk/Cmake-Emscripten-Project","owner":"ierturk","description":"CLion Cmake Emscripten Project","archived":false,"fork":false,"pushed_at":"2020-12-07T02:11:42.000Z","size":28,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-05T11:48:00.447Z","etag":null,"topics":["clion","cmake","cpp","emscripten","html","javascript","nodejs","webassembly"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ierturk.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}},"created_at":"2020-12-07T01:14:52.000Z","updated_at":"2024-06-09T20:59:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea397b21-c80a-4680-b880-2020b323d627","html_url":"https://github.com/ierturk/Cmake-Emscripten-Project","commit_stats":null,"previous_names":["ierturk/cmake-emscripten-project"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/ierturk/Cmake-Emscripten-Project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ierturk%2FCmake-Emscripten-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ierturk%2FCmake-Emscripten-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ierturk%2FCmake-Emscripten-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ierturk%2FCmake-Emscripten-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ierturk","download_url":"https://codeload.github.com/ierturk/Cmake-Emscripten-Project/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ierturk%2FCmake-Emscripten-Project/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266375256,"owners_count":23919545,"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-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["clion","cmake","cpp","emscripten","html","javascript","nodejs","webassembly"],"created_at":"2024-11-06T06:23:52.570Z","updated_at":"2025-10-17T15:23:25.361Z","avatar_url":"https://github.com/ierturk.png","language":"JavaScript","readme":"# CLion Emscripten project\nA skeleton ```Cmake``` project to generate ```WASM``` and ```JS``` file and serving with ```HTML```. ```Ubuntu``` ```WSL2``` is used from ```Microsoft``` ```Windows 10 - x64``` machine for testing..\n\n## How to use\n1. Clone this repo.\n2. Install ```Emscripten``` by following steps on [emscripten website](https://emscripten.org/docs/getting_started/downloads.html)\n3. In CLion CMAKE setting  add ```CMAKE_TOOLCHAIN_FILE=path/to/emscripten/emscripten/version/cmake/Modules/Platform/Emscripten.cmake```\n4. Build from ```Clion```\n5. It can be run following ways\n    1. Run in ```Emscripten``` environment with ```emrun Public/index.htm```. OR\n    2. Open file ```Public/index.htm``` in ```Clion``` then click your faworite browser from upper right corner.\n6. In developer tools console of browser you will see the result as ```144```.\n\n## Credits\nThe repo is created from the following references.\n1. [Emscripten Installation instructions](https://emscripten.org/docs/getting_started/downloads.html)\n2. [Emscripting a C library to Wasm](https://developers.google.com/web/updates/2018/03/emscripting-a-c-library)\n3. [Linux: Compile C++ to WebAssembly and JavaScript using Emscripten and CMake](https://gist.github.com/WesThorburn/00c47b267a0e8c8431e06b14997778e4) \n4. [Minimal CMake-driven Emscripten project](https://github.com/adevaykin/minimal-cmake-emscripten-project)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fierturk%2Fcmake-emscripten-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fierturk%2Fcmake-emscripten-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fierturk%2Fcmake-emscripten-project/lists"}