-
Notifications
You must be signed in to change notification settings - Fork 0
1. Including in your project
Oleksandr Nemesh edited this page Oct 25, 2024
·
1 revision
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.
Nothing difficult here! Just do this when you want to use the library:
#include <rift.hpp>