19 lines
559 B
CMake
19 lines
559 B
CMake
cmake_minimum_required(VERSION 3.29)
|
|
project(Cuber)
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
|
raylib
|
|
URL https://github.com/raysan5/raylib/archive/refs/tags/5.0.zip
|
|
)
|
|
FetchContent_MakeAvailable(raylib)
|
|
set(BUILD_EXAMPLES OF CACHE BOOL "" FORCE)
|
|
set(SUPPORT_EVENTS_WAITING ON CACHE BOOL "" FORCE)
|
|
set(SUPPORT_BUSY_WAIT_LOOP OFF CACHE BOOL "" FORCE)
|
|
|
|
add_executable(Cuber main.cpp)
|
|
target_link_libraries(Cuber PRIVATE raylib)
|
|
target_include_directories(Cuber PRIVATE ${CMAKE_SOURCE_DIR}/raylib/include)
|