[TODO: Insert text here]
Adding libsnake to your CMake project is easy. Simply add the following lines to your CMake project where mytarget
is the target you would like to link libsnake to.
FetchContent_Declare(
libsnake_lib
GIT_REPOSITORY https://github.com/TheMrSheldon/libsnake.git
)
FetchContent_MakeAvailable(libsnake_lib)
FetchContent_GetProperties(libsnake_lib)
target_include_directories(mytarget PRIVATE ${libsnake_SOURCE_DIR}/include/)
target_link_libraries(mytarget PRIVATE libsnake)
- CMake
- VSCode
- CMake Extension for VSCode
- Working C++ compiler
- Clone this repository
- Open the cloned repository in VSCode
- Ctrl+Shift+P and enter "CMake: Configure"
- You may get asked to select a Kit: select your prefered compiler
- Ctrl+Shift+P and enter "CMake: Build"