Merge pull request #597 from 5schatten/libcec

CMakeList.txt: add option to disable libCEC / enabled by default
This commit is contained in:
Tomas Jakobsson 2019-08-31 17:13:35 +02:00 committed by GitHub
commit e600a99e8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 2.8)
option(GLES "Set to ON if targeting Embedded OpenGL" ${GLES})
option(GL "Set to ON if targeting Desktop OpenGL" ${GL})
option(RPI "Set to ON to enable the Raspberry PI video player (omxplayer)" ${RPI})
option(CEC "Set to ON to enable CEC" ${CEC})
project(emulationstation-all)
@ -59,7 +60,11 @@ find_package(SDL2 REQUIRED)
find_package(CURL REQUIRED)
find_package(VLC REQUIRED)
find_package(RapidJSON REQUIRED)
find_package(libCEC)
#add libCEC support
if(CEC)
find_package(libCEC REQUIRED)
endif()
#add ALSA for Linux
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")