CMakeLists.txt
changeset 8751 e8c61640668d
parent 8680 eb1281b43b5d
child 8842 f587255157cf
equal deleted inserted replaced
8750:5064096ddaf7 8751:e8c61640668d
   802     check_include_file(d3d11_1.h HAVE_D3D11_H)
   802     check_include_file(d3d11_1.h HAVE_D3D11_H)
   803     check_include_file(ddraw.h HAVE_DDRAW_H)
   803     check_include_file(ddraw.h HAVE_DDRAW_H)
   804     check_include_file(dsound.h HAVE_DSOUND_H)
   804     check_include_file(dsound.h HAVE_DSOUND_H)
   805     check_include_file(dinput.h HAVE_DINPUT_H)
   805     check_include_file(dinput.h HAVE_DINPUT_H)
   806     check_include_file(xaudio2.h HAVE_XAUDIO2_H)
   806     check_include_file(xaudio2.h HAVE_XAUDIO2_H)
       
   807     check_include_file(dxgi.h HAVE_DXGI_H)
   807     if(HAVE_D3D_H OR HAVE_D3D11_H OR HAVE_DDRAW_H OR HAVE_DSOUND_H OR HAVE_DINPUT_H OR HAVE_XAUDIO2_H)
   808     if(HAVE_D3D_H OR HAVE_D3D11_H OR HAVE_DDRAW_H OR HAVE_DSOUND_H OR HAVE_DINPUT_H OR HAVE_XAUDIO2_H)
   808       set(HAVE_DIRECTX TRUE)
   809       set(HAVE_DIRECTX TRUE)
   809       # TODO: change $ENV{DXSDL_DIR} to get the path from the include checks
   810       # TODO: change $ENV{DXSDL_DIR} to get the path from the include checks
   810       link_directories($ENV{DXSDK_DIR}\\lib\\${PROCESSOR_ARCH})
   811       link_directories($ENV{DXSDK_DIR}\\lib\\${PROCESSOR_ARCH})
   811       include_directories($ENV{DXSDK_DIR}\\Include)
   812       include_directories($ENV{DXSDK_DIR}\\Include)