add option to build rexm with CMake
This commit is contained in:
parent
64921e2d8a
commit
0b6560b3e0
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
3
tools/rexm/CMakeLists.txt
Normal file
3
tools/rexm/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
set(rexm_source rexm.c)
|
||||
add_executable(rexm ${rexm_source})
|
||||
target_link_libraries(rexm raylib)
|
||||
Loading…
Reference in New Issue
Block a user