eranpeer / FakeIt

C++ mocking made easy. A simple yet very expressive, headers only library for c++ mocking.
MIT License
1.24k stars 170 forks source link

Proper CMake support #139

Closed Quincunx271 closed 1 year ago

Quincunx271 commented 6 years ago

It would be nice to be able to consume this library from cmake with syntax like:

find_package(FakeIt REQUIRED)

# ...

target_link_libraries(MyTarget FakeIt::FakeIt)

Some options I know of to make this possible:

libenike commented 4 years ago

I have implemented cmake support of FakeIt. In my fork you can link FakeIt to a project by this way:

find_package(FakeIt REQUIRED)

# ...

target_link_libraries(MyTarget FakeIt::FakeIt)

Link to the pull request. Link to a simple project which use FakeIt. Here you can find detailed building instructions for the project.

FranckRJ commented 1 year ago

Fixed by #192 and #311, it's already in master.