Skip to content

Commit 983efae

Browse files
authored
Expose RGFW to cmake (#5386)
i was wondering why that was missing
1 parent 95c4efd commit 983efae

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMakeOptions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if(EMSCRIPTEN)
66
# When configuring web builds with "emcmake cmake -B build -S .", set PLATFORM to Web by default
77
SET(PLATFORM Web CACHE STRING "Platform to build for.")
88
endif()
9-
enum_option(PLATFORM "Desktop;Web;Android;Raspberry Pi;DRM;SDL" "Platform to build for.")
9+
enum_option(PLATFORM "Desktop;Web;Android;Raspberry Pi;DRM;SDL;RGFW" "Platform to build for.")
1010

1111
enum_option(OPENGL_VERSION "OFF;4.3;3.3;2.1;1.1;ES 2.0;ES 3.0;Software" "Force a specific OpenGL Version?")
1212

cmake/LibraryConfigurations.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ elseif ("${PLATFORM}" MATCHES "SDL")
141141
add_compile_definitions(USING_SDL2_PACKAGE)
142142
endif()
143143
endif()
144+
elseif ("${PLATFORM}" MATCHES "RGFW")
145+
set(PLATFORM_CPP "PLATFORM_DESKTOP_RGFW")
144146
endif ()
145147

146148
if (NOT ${OPENGL_VERSION} MATCHES "OFF")

0 commit comments

Comments
 (0)