7
0
mirror of https://gitlab.com/raylibtemplates/rt.git synced 2026-06-28 03:06:18 -04:00

Remove CPP dependencies from CMakeLists.txt

This commit is contained in:
Maple Redleaf
2025-12-19 11:03:52 -06:00
parent 1ceab525b9
commit b1f494c5d8
2 changed files with 3 additions and 20 deletions

View File

@@ -21,22 +21,6 @@ if(NOT raylib_FOUND) # If there's none, fetch and build raylib
endif()
endif()
set(RAYLIB_CPP_VERSION "v5.5.0")
find_package(raylib_cpp QUIET) # QUIET or REQUIRED
if(NOT raylib_cpp_FOUND) # If there's none, fetch and build raylib
include(FetchContent)
FetchContent_Declare(
raylib_cpp
DOWNLOAD_EXTRACT_TIMESTAMP OFF
URL https://github.com/RobLoach/raylib-cpp/archive/refs/tags/${RAYLIB_CPP_VERSION}.tar.gz
)
FetchContent_GetProperties(raylib_cpp)
if(NOT raylib_cpp_POPULATED) # Have we downloaded raylib yet?
set(FETCHCONTENT_QUIET NO)
FetchContent_MakeAvailable(raylib_cpp)
endif()
endif()
# Our Project
add_executable(${PROJECT_NAME})
@@ -85,11 +69,10 @@ target_sources(${PROJECT_NAME} PRIVATE ${GENERATED_HEADERS})
target_include_directories(${PROJECT_NAME} PRIVATE
${DATA_DIR}
${raylib_INCLUDE_DIRS}
${raylib_cpp_INCLUDE_DIRS}
)
# Link libraries
target_link_libraries(${PROJECT_NAME} raylib raylib_cpp)
target_link_libraries(${PROJECT_NAME} raylib)
# Web Configurations
if(${PLATFORM} STREQUAL "Web")

View File

@@ -1,3 +1,3 @@
# RaylibGame
# RaylibTemplate
A template for making games with Raylib-CPP
A template for making games with Raylib (with CMake)