{"id":15017915,"url":"https://github.com/wumo-util/newconan","last_synced_at":"2026-02-24T00:34:47.708Z","repository":{"id":57445839,"uuid":"157717442","full_name":"wumo-util/newconan","owner":"wumo-util","description":"C++ project template generator based on cMake, conan","archived":false,"fork":false,"pushed_at":"2020-08-05T12:49:29.000Z","size":95,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T11:59:05.806Z","etag":null,"topics":["cmake","conan","cpp","python"],"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/wumo-util.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}},"created_at":"2018-11-15T13:38:26.000Z","updated_at":"2021-06-05T05:18:51.000Z","dependencies_parsed_at":"2022-09-26T17:30:58.576Z","dependency_job_id":null,"html_url":"https://github.com/wumo-util/newconan","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wumo-util%2Fnewconan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wumo-util%2Fnewconan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wumo-util%2Fnewconan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wumo-util%2Fnewconan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wumo-util","download_url":"https://codeload.github.com/wumo-util/newconan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245020314,"owners_count":20548156,"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","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","conan","cpp","python"],"created_at":"2024-09-24T19:51:10.251Z","updated_at":"2025-10-29T16:23:45.348Z","avatar_url":"https://github.com/wumo-util.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"`newconan` creates default project structure that is convenient for developing in IDEs like Clion and Visual Studio.\u003c!--more--\u003e\n\n## Requirements\n\n`cmake` \u003e= 3.14 \n\n## Installation\n```shell\n$ pip install newconan\n```\n\n## Create Project\n```shell\n$ newconan TestExe                      # create exe project\n$ newconan TestSharedLibrary -shared    # create shared library project\n$ newconan TestStaticLibrary -static    # create static library project\n```\n\n## Project Structure\n\n```\nTestSharedLibrary\n├── .git\n├── .travis\n│   ├── install.sh\n│   └── run.sh\n├── assets\n│   └── public\n│       └── TestSharedLibrary\n├── cmake\n│   ├── conan.cmake\n│   ├── symlink.cmake\n│   └── symlink.py\n├── src\n│   ├── main.cpp\n│   └── main.h\n├── test\n│   └── test.cpp\n├── .clang-format\n├── .gitignore\n├── .gitlab-ci.yml\n├── .travis.yml\n├── appveyor.yml\n├── build.py\n├── CMakeLists.txt\n├── CMakeSettings.json\n├── conanfile.py\n└── README.md\n```\n* `newconan` will automatically create the git repository which is `.git` folder.\n* `assets` folder will contains resource files which will be symlink to `${CMAKE_CURRENT_BINARY_DIR}/bin/assets`. In this way, your binary can use the relative path `./assets` to access the resource files.\n* `cmake` folder contains some `cmake macros` to symlink folder and setup `conan`.\n* `src` folder contains the main source code for your project.\n* `test` folder contains all the test `cpp` files.\n* `.clang-format` is the default format that `clang-format` will use.\n* `.gitignore` ignores everything except exisiting folders and files. You can edit this file to add other folders to git.\n* `.gitlab-ci.yml` is the default ci configuration for `gitlab`.\n* `.travis.yml` and folder `.travis` is the default ci configuration for `travis`.\n* `appveyor.yml` is the default ci configuration for `appveyor`.\n* `build.py` will be used by `gitlab-ci` to build and upload this project as `conan recipe` for others to use your library.\n* `CMakeLists.txt` will define a target for your project and link all the necessary libraries against it. `CMakeLists.txt` also scans `test` folder and create corresponding a test target for each `cpp` file.\n* `CMakeSettings.json` is used by `Visual Studio`. This file will make `Visual Studio` put the `build` folder relative to your project rather than some hashed folder which you can't find easily.\n* `conanfile.py` defines the library dependencies. `conan` will download and compile all the required libraries and copy `*.dll/*.dylib` to `${CMAKE_CURRENT_BINARY_DIR}/bin` folder. At the same time, dependent library resource files will also be copied.\n* `README.md` shows how to build this project using `cmake` and `conan`.\n\n## Add dependency\nYou can add library dependencies to your project by modifying the `requires` attribute of `conanfile.py`:\n```python\nclass ProjectNameConan(ConanFile):\n    name = \"ProjectName\"\n    version = \"1.0.0\"\n    settings = \"os\", \"compiler\", \"build_type\", \"arch\"\n    requires = ( # Add dependencies here.\n        \"library1/1.0.0@conan/stable\", \n        \"library2/2.0.0@conan/testing\",\n        ...\n    ) \n```\nAnd then refresh `cmake`, `conan` will download and compile all the listed dependencies.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwumo-util%2Fnewconan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwumo-util%2Fnewconan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwumo-util%2Fnewconan/lists"}