Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/claremacrae/googletest-starter-project
Place to experiment with googletest and conan builds
https://github.com/claremacrae/googletest-starter-project
Last synced: about 1 month ago
JSON representation
Place to experiment with googletest and conan builds
- Host: GitHub
- URL: https://github.com/claremacrae/googletest-starter-project
- Owner: claremacrae
- License: mit
- Created: 2018-02-25T13:05:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-06T07:22:45.000Z (almost 7 years ago)
- Last Synced: 2024-10-31T17:12:28.186Z (3 months ago)
- Language: CMake
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# googletest-starter-project
This demonstrates how to use [Conan.io](http://docs.conan.io/en/latest/introduction.html) with [cmake](https://cmake.org/documentation/) to create a multi-configuration Visual Studio 2017 solution file.
See also https://github.com/claremacrae/googletest-starter-project-separate-folders, which shows a much less good way of using Visual Studio with Conan and CMake.
## Usage
To use:
1. Clone or download this repo
1. Make sure you have Visual Studio 2017 installed
1. Make sure you have CMake installed
1. Make sure you have Conan installed
1. Run `build_and_test.bat`
1. You can also open `build-windows\googletest-starter-project.sln` in Visual Studio, and build any of the configurations.## Things to note
* This uses conan's [`cmake_multi`](http://docs.conan.io/en/latest/reference/generators/cmakemulti.html) generator.
* You won't be able to step through the Google Test code in the debugger - Conan doesn't download source code, and many packages don't create .pdb files, or don't put them in a location where the Visual Studio linker finds them. See [Issue #3](https://github.com/claremacrae/googletest-starter-project/issues/3) for more information.
* Don't be tempted to use the [`visual_studio_multi`](http://docs.conan.io/en/latest/reference/generators/visualstudiomulti.html) generator - it is for the case where you are hand-maintaining the contents of your solution files and projects, and just want Conan to manage 3rd-party dependencies.## TODO
* Adjust this so that it works for conan's `cmake` generator, for use on Linux, as well as for `cmake_multi`.
* This was written up on the cpplang #Conan slack channel - I saved it, and just need to write up the notes here