You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
637 B
28 lines
637 B
|
|
cmake_minimum_required(VERSION 3.10) |
|
|
|
set(CMAKE_CXX_STANDARD 17) |
|
|
|
add_compile_options(-g -fsanitize=address) |
|
add_link_options(-g -fsanitize=address) |
|
|
|
# set the project name |
|
project(2huwu) |
|
|
|
|
|
find_package(raylib 2.0 REQUIRED) |
|
|
|
find_package(raylib_cpp QUIET) |
|
if (NOT raylib_cpp_FOUND) |
|
include(FetchContent) |
|
FetchContent_Declare( |
|
raylib_cpp |
|
GIT_REPOSITORY https://github.com/RobLoach/raylib-cpp.git |
|
GIT_TAG v4.2.5 |
|
) |
|
FetchContent_MakeAvailable(raylib_cpp) |
|
endif() |
|
|
|
# add the executable |
|
add_executable(2huwu src/main.cpp src/draw.cpp src/game.cpp) |
|
target_link_libraries(2huwu PUBLIC raylib raylib_cpp)
|
|
|