Skip to content

Conversation

@orjangj
Copy link

@orjangj orjangj commented Aug 9, 2025

No description provided.

@orjangj
Copy link
Author

orjangj commented Aug 9, 2025

This PR only resolves item nr. 1 from #505 (adding basic CMake support to CMock). Maybe #505 should be split up into separate tickets.

The CMake integration in CMock is almost a direct copy-paste from https://github.com/ThrowTheSwitch/Unity. Not sure if I should give credit in the CMakeLists.txt file or not.

CMake doesn't have the same fallback capabilities as Meson, but I've tried to mimic the behavior with:

if(NOT TARGET unity::framework)
    add_subdirectory(vendor/unity)
endif()

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.

1 participant