How to learn to program with the Raylib API.

You may also try the examples on the project website https://www.raylib.com/examples.html and use QT Creator and all it's niceties with pkg install raylib , create a Non-QT Project and add a CmakeLists.txt like:

Code:
cmake_minimum_required(VERSION 3.16)
project(raylib_example LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(raylib ${RAYLIB_VERSION} QUIET)
add_executable(raylib_example core_basic_window.c)
target_link_libraries(raylib_example raylib)
include(GNUInstallDirs)
install(TARGETS raylib_example
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
 
Back
Top