-
Notifications
You must be signed in to change notification settings - Fork 176
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 cmake support. #192
Add cmake support. #192
Conversation
Replace old CMakeLists.txt with the new one. Now FakeIt can be bind to a project with two string by cmake: find_package(FakeIt) ... target_link_libraries(a_project PRIVATE FakeIt::FakeIt )
Replace share/FakeIt/cmake directory for ${CMAKE_ISNTALL_LIBDIR}/cmake/FakeIt
Whats the status of this pull request? |
The status is open. I am waiting for any response from contributors. You are welcome to leave any suggestions about my fork. |
@libenike , your branch works for me, I'd like to see this merged to master. |
I've thought about it, wouldn't it be better to have one target per configuration? With explicit names I guess, so no "FakeIt::FakeIt" but instead "FakeIt::standalone" or something like that. |
I've updated some things in this PR: #311 I removed the target |
Replace old CMakeLists.txt with the new one.
Now FakeIt can be linked to the project in the following way:
I found a related issue with this request.
Also, I create a repository with a simple project which uses FakeIt and a detailed description of building the project.