Include the FetchContent module in your CMake file.
Copy
Ask AI
# this should be somewhere in your cmake fileinclude(FetchContent)...# set the desired miru options (feel free to change these)set(MIRU_FETCH_BOOST ON)set(MIRU_BUILD_TESTS OFF)set(MIRU_BUILD_EXAMPLES ON)FetchContent_Declare( miru GIT_REPOSITORY https://github.com/miruml/cpp-sdk.git # Replace with actual repo URL GIT_TAG main # replace with desired tag/branch/commit GIT_SUBMODULES "" # disable submodule cloning since the openapi repository inside the cpp-sdk repository is private)FetchContent_MakeAvailable(miru)...# link the miru sdk target_link_libraries(your-app PRIVATE miru::miru)
Support for more integration methods and package managers is coming soon.