boost-ext/reflect

Usage with CPM

Closed this issue · 1 comments

This is not an issue, but more an info, if using CMake with CPM this library can be pulled in by:

    CPMAddPackage(
        Name reflect
        GITHUB_REPOSITORY boost-ext/reflect
        GIT_TAG v1.0.0
    )
    add_library(reflect INTERFACE)
    target_include_directories(reflect SYSTEM INTERFACE ${reflect_SOURCE_DIR})
    add_library(reflect::reflect ALIAS reflect)

and then added to your library/executable by calling:

target_link_libraries(${PROJECT_NAME} reflect::reflect);

Thanks @SGSSGene, added to the #FAQ with link to the issue