CMakeLists.txt
changeset 7903 4d3e6191c807
parent 7867 d9d50f52a686
child 7977 5272ae8fccd7
equal deleted inserted replaced
7902:0c2e2b91eeea 7903:4d3e6191c807
   646         #include <linux/input.h>
   646         #include <linux/input.h>
   647         #ifndef EVIOCGNAME
   647         #ifndef EVIOCGNAME
   648         #error EVIOCGNAME() ioctl not available
   648         #error EVIOCGNAME() ioctl not available
   649         #endif
   649         #endif
   650         int main(int argc, char** argv) {}" HAVE_INPUT_EVENTS)
   650         int main(int argc, char** argv) {}" HAVE_INPUT_EVENTS)
       
   651 
       
   652     file(GLOB CORE_SOURCES ${SDL2_SOURCE_DIR}/src/core/linux/*.c)
       
   653     set(SOURCE_FILES ${SOURCE_FILES} ${CORE_SOURCES})
       
   654 
   651     if(HAVE_INPUT_EVENTS)
   655     if(HAVE_INPUT_EVENTS)
   652       set(SDL_INPUT_LINUXEV 1)
   656       set(SDL_INPUT_LINUXEV 1)
   653     endif(HAVE_INPUT_EVENTS)
   657     endif(HAVE_INPUT_EVENTS)
   654 
   658 
   655     if(SDL_HAPTIC AND HAVE_INPUT_EVENTS)
   659     if(SDL_HAPTIC AND HAVE_INPUT_EVENTS)
   744 
   748 
   745   check_c_source_compiles("
   749   check_c_source_compiles("
   746     #include <windows.h>
   750     #include <windows.h>
   747     int main(int argc, char **argv) { }" HAVE_WIN32_CC)
   751     int main(int argc, char **argv) { }" HAVE_WIN32_CC)
   748 
   752 
   749   file(GLOB WIN_SOURCES ${SDL2_SOURCE_DIR}/src/core/windows/*.c)
   753   file(GLOB CORE_SOURCES ${SDL2_SOURCE_DIR}/src/core/windows/*.c)
   750   set(SOURCE_FILES ${SOURCE_FILES} ${WIN_SOURCES})
   754   set(SOURCE_FILES ${SOURCE_FILES} ${CORE_SOURCES})
   751 
   755 
   752   # Check for DirectX
   756   # Check for DirectX
   753   if(DIRECTX)
   757   if(DIRECTX)
   754     if("$ENV{DXSDK_DIR}" STREQUAL "")
   758     if("$ENV{DXSDK_DIR}" STREQUAL "")
   755       message_error("DIRECTX requires the \$DXSDK_DIR environment variable to be set")
   759       message_error("DIRECTX requires the \$DXSDK_DIR environment variable to be set")