···102102103103104104option(INSTALL_LIBRARY "Install SDL_gpu libs, includes, and CMake scripts" ${DEFAULT_INSTALL_LIBRARY})
105105-#option(BUILD_DEBUG "Build with debugging symbols" ON)
105105+option(BUILD_EXPLICIT_DEBUG "Build with debugging symbols if your build tool does not support multiple configurations" OFF)
106106option(BUILD_DEMOS "Build SDL_gpu demo programs" ${DEFAULT_BUILD_DEMOS})
107107option(BUILD_TESTS "Build SDL_gpu test programs" OFF)
108108option(BUILD_VIDEO_TEST "Build SDL_gpu video test program (requires FFMPEG)" OFF)
···145145 include(ios-cmake/toolchain/XcodeDefaults)
146146endif()
147147148148+if ( BUILD_EXPLICIT_DEBUG )
149149+ SET(CMAKE_BUILD_TYPE Debug)
150150+endif ( BUILD_EXPLICIT_DEBUG )
148151# Make local includes look in the right places
149152include_directories(include)
150153include_directories(src)
···357360if (USE_BUFFER_MAPPING)
358361 add_definitions("-DSDL_GPU_USE_BUFFER_MAPPING")
359362endif (USE_BUFFER_MAPPING)
363363+364364+365365+if(BUILD_DEMOS OR BUILD_TESTS OR BUILD_TOOLS)
366366+ # The executables link to the static library, so force build it.
367367+ set(BUILD_STATIC ON)
368368+endif(BUILD_DEMOS OR BUILD_TESTS OR BUILD_TOOLS)
360369361370# Build the SDL_gpu library.
362371add_subdirectory(src)