{"id":25208228,"url":"https://github.com/1010code/make-cpp-library-advance","last_synced_at":"2026-01-19T02:32:37.673Z","repository":{"id":231428135,"uuid":"781749255","full_name":"1010code/make-cpp-library-advance","owner":"1010code","description":"Find and Link Libraries with CMake","archived":false,"fork":false,"pushed_at":"2024-04-04T02:00:00.000Z","size":660,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T04:20:28.611Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CMake","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/1010code.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}},"created_at":"2024-04-04T00:44:45.000Z","updated_at":"2024-04-04T00:49:14.000Z","dependencies_parsed_at":"2024-04-04T01:42:30.268Z","dependency_job_id":null,"html_url":"https://github.com/1010code/make-cpp-library-advance","commit_stats":null,"previous_names":["1010code/make-cpp-library-advance"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/1010code/make-cpp-library-advance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1010code%2Fmake-cpp-library-advance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1010code%2Fmake-cpp-library-advance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1010code%2Fmake-cpp-library-advance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1010code%2Fmake-cpp-library-advance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1010code","download_url":"https://codeload.github.com/1010code/make-cpp-library-advance/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1010code%2Fmake-cpp-library-advance/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28558231,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T00:46:33.223Z","status":"online","status_checked_at":"2026-01-19T02:00:08.049Z","response_time":67,"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":"2025-02-10T12:19:08.147Z","updated_at":"2026-01-19T02:32:37.655Z","avatar_url":"https://github.com/1010code.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n## Find and Link Libraries with CMake\r\n本教學將會學習到如何自己製作函式庫並使用 CMake 的 export 指令匯出庫安裝包，使可以在另一個 CMake c++ 專案中使用它。有兩中方法可以在外部專案使用到已寫好的庫，ch1會需要酷的原始碼一起編譯，ch2的方法是將庫先匯出安裝包並手動放在指定資料夾讓專案尋找並連結。\r\n\r\n- [ch1](./ch1/)方法是透過add_subdirectory將mylib庫與應用程式專案一起編譯。同時會將mylib輸出安裝靜態庫\r\n- [ch2](./ch2/)會介紹如何使用find_package方式將已編譯好的靜態庫與其他專案連結。\r\n\r\n\u003e 靜態庫和動態庫的構建可以先參考這一個repo教學[make-cpp-library](https://github.com/1010code/make-cpp-library)\r\n\r\n## Reference\r\n- [Simple find_package config file example](https://stackoverflow.com/questions/49857596/simple-find-package-config-file-example)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1010code%2Fmake-cpp-library-advance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1010code%2Fmake-cpp-library-advance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1010code%2Fmake-cpp-library-advance/lists"}