CMakeLists.txt
changeset 11138 c936a84f05ba
parent 11095 5cf754a84eb7
child 11175 cbc6a8a5b701
equal deleted inserted replaced
11137:15f027d062f8 11138:c936a84f05ba
  1093       # xinput.h may need windows.h, but doesn't include it itself.
  1093       # xinput.h may need windows.h, but doesn't include it itself.
  1094       check_c_source_compiles("
  1094       check_c_source_compiles("
  1095         #include <windows.h>
  1095         #include <windows.h>
  1096         #include <xinput.h>
  1096         #include <xinput.h>
  1097         int main(int argc, char **argv) { }" HAVE_XINPUT_H)
  1097         int main(int argc, char **argv) { }" HAVE_XINPUT_H)
       
  1098       check_c_source_compiles("
       
  1099         #include <windows.h>
       
  1100         #include <xinput.h>
       
  1101         XINPUT_GAMEPAD_EX x1;
       
  1102         int main(int argc, char **argv) { }" HAVE_XINPUT_GAMEPAD_EX)
       
  1103       check_c_source_compiles("
       
  1104         #include <windows.h>
       
  1105         #include <xinput.h>
       
  1106         XINPUT_STATE_EX s1;
       
  1107         int main(int argc, char **argv) { }" HAVE_XINPUT_STATE_EX)
  1098     else()
  1108     else()
  1099       check_include_file(xinput.h HAVE_XINPUT_H)
  1109       check_include_file(xinput.h HAVE_XINPUT_H)
  1100     endif()
  1110     endif()
  1101 
  1111 
  1102     check_include_file(d3d9.h HAVE_D3D_H)
  1112     check_include_file(d3d9.h HAVE_D3D_H)