Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add two very simple examples of using doctest with CMake #209

Merged
merged 3 commits into from Mar 24, 2019
Merged

Add two very simple examples of using doctest with CMake #209

merged 3 commits into from Mar 24, 2019

Conversation

pr0g
Copy link
Contributor

@pr0g pr0g commented Mar 23, 2019

Description

I was hoping it might be possible to add a couple more minimal examples of how to set up and use doctest.

I found the existing examples helpful but there's also quite a lot going on in each. They can be a little confusing/intimidating to a newcomer to the library. These two new examples provide the bare minimum for using doctest with a plain exe or a dll.

There may well be some stuff I've missed and I'm happy to provide more info in a README file if you think that'd help. If you can think of better names or locations for the examples please let me know too.

The library is brilliant by the way and I'm hoping to use it a lot more in the future! 😄

Thanks!

Tom

@onqtam onqtam merged commit 6885508 into doctest:dev Mar 24, 2019
onqtam pushed a commit that referenced this pull request Mar 24, 2019
* add some very simple examples of using doctest after having installed it using cmake

* ran clang-format

* update naming in comments
@onqtam
Copy link
Member

onqtam commented Mar 24, 2019

Glad you like the framework :)

I moved the examples to a different directory: https://github.com/onqtam/doctest/tree/master/examples/installed_doctest_cmake

@pr0g
Copy link
Contributor Author

pr0g commented Mar 24, 2019

Awesome! Thank you for the merge :)

Sounds perfect, much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants