You can simply copy include/glitchybyte
directory into your project.
Or you can include it remotely with FetchContent.
Include in your CMakeLists.txt
:
include(FetchContent)
# GBLib.
FetchContent_Declare(
gblib
GIT_REPOSITORY https://github.com/glitchybyte/gblib
GIT_TAG main
)
FetchContent_MakeAvailable(gblib)
# ...and then add it to your `target_link_libraries`:
# Use PUBLIC or PRIVATE if it's a final binary.
target_link_libraries(${PROJECT_NAME} PRIVATE gblib)
# Use INTERFACE if it's a library.
target_link_libraries(${PROJECT_NAME} INTERFACE gblib)
In your code:
#include <glitchybyte/gb/gb.hpp>