Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/parkertomatoes/parktoma-vscconan
Utility to update Visual Studio Code C++ Tools include paths from conanfile.py
https://github.com/parkertomatoes/parktoma-vscconan
conan-io cpp vscode
Last synced: 28 days ago
JSON representation
Utility to update Visual Studio Code C++ Tools include paths from conanfile.py
- Host: GitHub
- URL: https://github.com/parkertomatoes/parktoma-vscconan
- Owner: parkertomatoes
- License: mit
- Created: 2019-10-29T08:17:43.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-29T14:18:59.000Z (about 5 years ago)
- Last Synced: 2024-11-13T02:51:51.597Z (about 2 months ago)
- Topics: conan-io, cpp, vscode
- Language: Python
- Homepage: https://pypi.org/project/parktoma-vscconan/
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Conan Utility For Visual Studio Code
## Overview
This package provides a helper method for a [Conan](https://conan.io) project's conanfile.py to update the Visual Studio Code C++ Tools plugin after installing dependencies, so that Intellisense finds the installed pathshttps://pypi.org/project/parktoma-vscconan/
## Installing
Install using pip:
```bash
pip install parktoma-vscconan
```## How to use
Use a [conanfile.py](https://docs.conan.io/en/latest/reference/conanfile.html) instead of conanfile.txt to define your project dependencies.Then, in your class, add an event handler for ```imports```:
```python
#...
from parktoma.vscconan import update_cpp_toolsclass MyProject(ConanFile):
#...
def imports(self):
update_cpp_tools(self, conanfile_path=__file__)
```Then, run ```conan install```. c_cpp_properties.json should be updated and Intellisense should find your dependencies.