add option to build rexm with CMake

This commit is contained in:
JohnnyCena123 2025-08-05 16:00:30 +03:00
parent 64921e2d8a
commit 0b6560b3e0
3 changed files with 8 additions and 0 deletions

View File

@ -54,5 +54,9 @@ if (${BUILD_EXAMPLES})
MESSAGE(STATUS "Building examples is enabled")
add_subdirectory(examples)
endif()
if (${BUILD_REXM})
MESSAGE(STATUS "Building rexm is enabled")
add_subdirectory(tools/rexm)
endif()
enable_testing()

View File

@ -12,6 +12,7 @@ enum_option(OPENGL_VERSION "OFF;4.3;3.3;2.1;1.1;ES 2.0;ES 3.0" "Force a specific
# Configuration options
option(BUILD_EXAMPLES "Build the examples." ${PROJECT_IS_TOP_LEVEL})
option(BUILD_REXM "Build the rexm tool." ${PROJECT_IS_TOP_LEVEL})
option(CUSTOMIZE_BUILD "Show options for customizing your Raylib library build." OFF)
option(ENABLE_ASAN "Enable AddressSanitizer (ASAN) for debugging (degrades performance)" OFF)
option(ENABLE_UBSAN "Enable UndefinedBehaviorSanitizer (UBSan) for debugging" OFF)

View File

@ -0,0 +1,3 @@
set(rexm_source rexm.c)
add_executable(rexm ${rexm_source})
target_link_libraries(rexm raylib)