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

cmake: install interface library target if cmake version >= 3.0 #54

Merged
merged 1 commit into from
Jul 17, 2017
Merged

cmake: install interface library target if cmake version >= 3.0 #54

merged 1 commit into from
Jul 17, 2017

Conversation

tamaskenez
Copy link

Thanks for your implementation of the std::optional!

I added an interface library target to the CMakeLists.txt, many of us use CMake libraries (even header-only ones) this way only. Feel free to suggest changes or reject.

Usage:

In a client project's CMakeLists.txt:

 find_package(akrzemi1_optional REQUIRED)
 ...
 target_link_libraries(mytarget ... akrzemi1::optional ...)

In a client C++ source file:

#include "akrzemi1/optional.hpp"

@akrzemi1 akrzemi1 merged commit 62ca166 into akrzemi1:master Jul 17, 2017
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.

2 participants