From b6381c1cb6d9089e590866ac4a168f6ed4622939 Mon Sep 17 00:00:00 2001 From: mchughalex <25671999+mchughalex@users.noreply.github.com> Date: Tue, 19 May 2026 16:39:49 +0100 Subject: [PATCH] integrate Skate-specific rexglue SDK --- .gitmodules | 5 +++++ cmake/RexGlue.cmake | 20 ++++++++++++++++++++ third_party/rexglue-sdk | 1 + 3 files changed, 26 insertions(+) create mode 100644 .gitmodules create mode 100644 cmake/RexGlue.cmake create mode 160000 third_party/rexglue-sdk diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..139a884 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,5 @@ +[submodule "third_party/rexglue-sdk"] + path = third_party/rexglue-sdk + url = https://github.com/mchughalex/rexglue-skate3.git + branch = skate3-sdk-clean + diff --git a/cmake/RexGlue.cmake b/cmake/RexGlue.cmake new file mode 100644 index 0000000..99df1f9 --- /dev/null +++ b/cmake/RexGlue.cmake @@ -0,0 +1,20 @@ +set(REXSDK_VERSION "" CACHE STRING "Override rexglue SDK package version") + +if(REXSDK_DIR AND EXISTS "${REXSDK_DIR}/CMakeLists.txt") + add_subdirectory("${REXSDK_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/rexglue-sdk") + message(STATUS "Using rexglue SDK source tree: ${REXSDK_DIR}") +else() + if(REXSDK_VERSION) + find_package(rexglue ${REXSDK_VERSION} EXACT QUIET CONFIG) + else() + find_package(rexglue 0.8.1.19 QUIET CONFIG) + endif() + + if(NOT rexglue_FOUND) + message(FATAL_ERROR + "rexglue SDK not found. Set REXSDK_DIR to a rexglue-sdk source tree " + "or install the SDK package and set CMAKE_PREFIX_PATH.") + endif() + + message(STATUS "Found rexglue SDK ${REXGLUE_VERSION_STRING} at ${rexglue_DIR}") +endif() diff --git a/third_party/rexglue-sdk b/third_party/rexglue-sdk new file mode 160000 index 0000000..9173ff4 --- /dev/null +++ b/third_party/rexglue-sdk @@ -0,0 +1 @@ +Subproject commit 9173ff4b017a178b6c2433bd925eb96d79dc764d