26 lines
608 B
CMake
26 lines
608 B
CMake
cmake_minimum_required(VERSION 4.0)
|
|
project(isaac__)
|
|
|
|
set(CMAKE_CXX_STANDARD 23)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexperimental-library")
|
|
|
|
include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
|
raylib
|
|
GIT_REPOSITORY "https://github.com/raysan5/raylib.git"
|
|
GIT_TAG "5.5"
|
|
GIT_PROGRESS TRUE
|
|
GIT_SHALLOW true
|
|
)
|
|
|
|
FetchContent_MakeAvailable(raylib)
|
|
|
|
add_executable(isaac__ main.cpp
|
|
types.h
|
|
spawner.h
|
|
rng.cpp
|
|
rng.h
|
|
)
|
|
target_link_libraries(${PROJECT_NAME} PUBLIC raylib)
|
|
target_include_directories(${PROJECT_NAME} PUBLIC ${raylib_public_headers}) |