diff --git a/CMakeLists.txt b/CMakeLists.txt index f7597694c..700dc56fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/CMakeOptions.txt b/CMakeOptions.txt index 3c1c12742..728b7e338 100644 --- a/CMakeOptions.txt +++ b/CMakeOptions.txt @@ -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) diff --git a/tools/rexm/CMakeLists.txt b/tools/rexm/CMakeLists.txt new file mode 100644 index 000000000..392017a13 --- /dev/null +++ b/tools/rexm/CMakeLists.txt @@ -0,0 +1,3 @@ +set(rexm_source rexm.c) +add_executable(rexm ${rexm_source}) +target_link_libraries(rexm raylib)