diff --git a/CMakeLists.txt b/CMakeLists.txt index 2df6d218..9500b974 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,6 +88,10 @@ if(NOT EXISTS "${CMAKE_SOURCE_DIR}/.git") set(BUILD_TESTING OFF) endif() +if(ENABLE_TILEDRENDER) + _add_compile_definitions(TILED_RENDERING) +endif() + # Configure gtest if(BUILD_TESTING) set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) diff --git a/cmake/Options.cmake b/cmake/Options.cmake index f5cbdda5..ff74dbe4 100644 --- a/cmake/Options.cmake +++ b/cmake/Options.cmake @@ -15,9 +15,14 @@ endif() option(ENABLE_SDL "Build the SDL port" ${ENABLE_SDL_DEFAULT}) option(ENABLE_WX "Build the wxWidgets port" ${BUILD_DEFAULT}) +option(ENABLE_TILEDRENDER "Enable tiled renderer" ${BUILD_DEFAULT}) option(ENABLE_DEBUGGER "Enable the debugger" ON) option(ENABLE_ASAN "Enable -fsanitize=address by default. Requires debug build with GCC/Clang" OFF) +if(ENABLE_TILEDRENDER) + set(ENABLE_TILEDRENDER OFF) +endif() + # Static linking set(VBAM_STATIC_DEFAULT OFF) if(VCPKG_TARGET_TRIPLET MATCHES -static OR CMAKE_TOOLCHAIN_FILE MATCHES "mxe|-static")