working (kinda)

This commit is contained in:
n0ffie 2025-01-09 21:19:31 +01:00
parent 42764b5dd6
commit 9e92d61b21
9 changed files with 441 additions and 180 deletions

View file

@ -145,22 +145,7 @@ if (NOT raylib_FOUND) # If there's none, fetch and build raylib
endif()
endif()
# raylib-cpp
find_package(raylib_cpp QUIET)
if (NOT raylib_cpp_FOUND)
if (NOT DEFINED RAYLIB_CPP_VERSION)
set(RAYLIB_CPP_VERSION next)
endif()
include(FetchContent)
FetchContent_Declare(
raylib_cpp
GIT_REPOSITORY https://github.com/RobLoach/raylib-cpp.git
GIT_TAG ${RAYLIB_CPP_VERSION}
)
FetchContent_MakeAvailable(raylib_cpp)
endif()
target_link_libraries(${GUI_TARGET_NAME} PRIVATE raylib raylib_cpp)
target_link_libraries(${GUI_TARGET_NAME} PRIVATE raylib)
# Checks if OSX and links appropriate frameworks (Only required on MacOS)
if (APPLE)
@ -176,7 +161,7 @@ set_common_properties(${GUI_TARGET_NAME})
put_targets_into_folder(
FOLDER "ThirdParty/raylib"
TARGETS
raylib raylib_cpp uninstall
raylib uninstall
)
put_targets_into_folder(