diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b5f6623a5..2efa980de 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -148,9 +148,11 @@ set(SRB2_CONFIG_YASM OFF CACHE BOOL "Use YASM in place of NASM.") set(SRB2_CONFIG_DEV_BUILD OFF CACHE BOOL "Compile a development build of SRB2Kart.") -set(SRB2_CONFIG_SKIP_COMPTIME OFF CACHE BOOL - "Skip Comptime rebuild.") - +set(SRB2_CONFIG_TESTERS OFF CACHE BOOL + "Compile a build for testers.") +set(SRB2_CONFIG_HOSTTESTERS OFF CACHE BOOL + "Compile a build to host netgames for testers builds.") + add_subdirectory(blua) add_subdirectory(blan) add_subdirectory(objects) @@ -237,7 +239,7 @@ if(${SRB2_CONFIG_HAVE_ZLIB}) set(SRB2_HAVE_ZLIB ON) target_compile_definitions(SRB2SDL2 PRIVATE -DHAVE_ZLIB) else() - message(WARNING "You have specified that ZLIB is available but it was not found. SRB2Kart may not compile correctly.") + message(WARNING "You have specified that ZLIB is available but it was not found. Dr Robotnik's Ring Racers may not compile correctly.") endif() endif() @@ -260,7 +262,7 @@ if(${SRB2_CONFIG_HAVE_PNG} AND ${SRB2_CONFIG_HAVE_ZLIB}) target_compile_definitions(SRB2SDL2 PRIVATE -D_LARGEFILE64_SOURCE) target_sources(SRB2SDL2 PRIVATE apng.c) else() - message(WARNING "You have specified that PNG is available but it was not found. SRB2Kart may not compile correctly.") + message(WARNING "You have specified that PNG is available but it was not found. Dr Robotnik's Ring Racers may not compile correctly.") endif() endif() endif() @@ -486,6 +488,12 @@ target_compile_definitions(SRB2SDL2 PRIVATE -DCMAKECONFIG) if(SRB2_CONFIG_DEBUGMODE) target_compile_definitions(SRB2SDL2 PRIVATE -DZDEBUG -DPARANOIA -DRANGECHECK -DPACKETDROP) endif() +if(SRB2_CONFIG_TESTERS) + target_compile_definitions(SRB2SDL2 PRIVATE -DTESTERS) +endif() +if(SRB2_CONFIG_HOSTTESTERS) + target_compile_definitions(SRB2SDL2 PRIVATE -DHOSTTESTERS) +endif() if(SRB2_CONFIG_MOBJCONSISTANCY) target_compile_definitions(SRB2SDL2 PRIVATE -DMOBJCONSISTANCY) endif()