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)
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)
Clone the SDK repository and add it as a subdirectory to your project.
Copy
Ask AI
# replace with desired taggit clone -b v0.1.0 https://github.com/miruml/cpp-sdk.git
Copy
Ask AI
# 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)add_subdirectory("path/to/miru/sdk/repo", "${CMAKE_BINARY_DIR}/miru")...# link the miru sdktarget_link_libraries(your-app PRIVATE miru::miru)
Support for more integration methods and package managers is coming soon.