Skip to content

1. Including in your project

Oleksandr Nemesh edited this page Oct 25, 2024 · 1 revision

CMake

RIFT uses CMake, which makes it easier to use with other projects.

The easiest way is to use CPM and include the library that way:

CPMAddPackage("gh:EclipseMenu/rift#COMMIT_HASH") # don't forget to change it to latest commit
target_link_libraries(${PROJECT_NAME} rift)

You can also use any other way to get the library source like for example git submodules.
Just use add_subdirectory(path/to/rift) inside your CMakeLists.txt file and link it as shown before.

Headers

Nothing difficult here! Just do this when you want to use the library:

#include <rift.hpp>
Clone this wiki locally