CMakeLists.txt
changeset 12130 24142c5073a4
parent 12072 1e46699fa470
child 12149 e037e9c2bc00
equal deleted inserted replaced
12129:42ff8f08c740 12130:24142c5073a4
   748     message_error("SDL_HAPTIC requires SDL_JOYSTICK, which is not enabled")
   748     message_error("SDL_HAPTIC requires SDL_JOYSTICK, which is not enabled")
   749   endif()
   749   endif()
   750   file(GLOB HAPTIC_SOURCES ${SDL2_SOURCE_DIR}/src/haptic/*.c)
   750   file(GLOB HAPTIC_SOURCES ${SDL2_SOURCE_DIR}/src/haptic/*.c)
   751   set(SOURCE_FILES ${SOURCE_FILES} ${HAPTIC_SOURCES})
   751   set(SOURCE_FILES ${SOURCE_FILES} ${HAPTIC_SOURCES})
   752 endif()
   752 endif()
       
   753 if(SDL_SENSOR)
       
   754   file(GLOB SENSOR_SOURCES ${SDL2_SOURCE_DIR}/src/sensor/*.c)
       
   755   set(SOURCE_FILES ${SOURCE_FILES} ${SENSOR_SOURCES})
       
   756 endif()
   753 if(SDL_POWER)
   757 if(SDL_POWER)
   754   file(GLOB POWER_SOURCES ${SDL2_SOURCE_DIR}/src/power/*.c)
   758   file(GLOB POWER_SOURCES ${SDL2_SOURCE_DIR}/src/power/*.c)
   755   set(SOURCE_FILES ${SOURCE_FILES} ${POWER_SOURCES})
   759   set(SOURCE_FILES ${SOURCE_FILES} ${POWER_SOURCES})
   756 endif()
   760 endif()
   757 # TODO: in configure.in, the test for LOADSO and SDL_DLOPEN is a bit weird:
   761 # TODO: in configure.in, the test for LOADSO and SDL_DLOPEN is a bit weird: