CMakeLists.txt
changeset 8591 2228ae5a3ac6
parent 8303 7ee46ffa9c24
child 8606 29ffd0d3926b
     1.1 --- a/CMakeLists.txt	Sun Mar 09 22:48:38 2014 -0700
     1.2 +++ b/CMakeLists.txt	Mon Mar 10 01:51:03 2014 -0700
     1.3 @@ -799,11 +799,12 @@
     1.4      endif()
     1.5      set(CMAKE_REQUIRED_FLAGS "/I\"$ENV{DXSDK_DIR}\\Include\"")
     1.6      check_include_file(d3d9.h HAVE_D3D_H)
     1.7 +    check_include_file(d3d11_1.h HAVE_D3D11_H)
     1.8      check_include_file(ddraw.h HAVE_DDRAW_H)
     1.9      check_include_file(dsound.h HAVE_DSOUND_H)
    1.10      check_include_file(dinput.h HAVE_DINPUT_H)
    1.11      check_include_file(xaudio2.h HAVE_XAUDIO2_H)
    1.12 -    if(HAVE_D3D_H OR HAVE_DDRAW_H OR HAVE_DSOUND_H OR HAVE_DINPUT_H OR HAVE_XAUDIO2_H)
    1.13 +    if(HAVE_D3D_H OR HAVE_D3D11_H OR HAVE_DDRAW_H OR HAVE_DSOUND_H OR HAVE_DINPUT_H OR HAVE_XAUDIO2_H)
    1.14        set(HAVE_DIRECTX TRUE)
    1.15        # TODO: change $ENV{DXSDL_DIR} to get the path from the include checks
    1.16        link_directories($ENV{DXSDK_DIR}\\lib\\${PROCESSOR_ARCH})
    1.17 @@ -844,6 +845,10 @@
    1.18        set(SDL_VIDEO_RENDER_D3D 1)
    1.19        set(HAVE_RENDER_D3D TRUE)
    1.20      endif()
    1.21 +    if(RENDER_D3D AND HAVE_D3D11_H)
    1.22 +      set(SDL_VIDEO_RENDER_D3D11 1)
    1.23 +      set(HAVE_RENDER_D3D TRUE)
    1.24 +    endif()
    1.25      set(HAVE_SDL_VIDEO TRUE)
    1.26    endif()
    1.27