[cmake] add EVDEV and JOYSTICK options

This commit is contained in:
sL1pKn07 2017-07-07 00:16:43 +02:00
parent 8a680202a4
commit 18570281f9
1 changed files with 11 additions and 1 deletions

View File

@ -22,6 +22,8 @@ option(USE_GLES "Use GL ES" OFF)
option(USE_PULSEAUDIO "Use PulseAudio" OFF)
option(USE_WEBUI "Use WebUI" ON)
option(USE_REND "Use some rendering" ON)
option(USE_EVDEV "Use EVDEV" ON)
option(USE_JOYSTICK "Use Joystick" ON)
# Flags
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -fno-rtti -fno-operator-names")
@ -189,6 +191,14 @@ if(USE_WEBUI)
# TODO, deps/ifaddrs/ for Android
endif()
if(USE_EVDEV)
add_definitions(-DUSE_EVDEV)
endif()
if(USE_JOYSTICK)
add_definitions(-DUSE_JOYSTICK)
endif()
# Executable
add_executable(reicast ${source})