mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
CMakeList.txt: added option to conditionally enable libCEC
This commit is contained in:
parent
d62758c7cf
commit
2e6b632f50
|
@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 2.8)
|
||||||
option(GLES "Set to ON if targeting Embedded OpenGL" ${GLES})
|
option(GLES "Set to ON if targeting Embedded OpenGL" ${GLES})
|
||||||
option(GL "Set to ON if targeting Desktop OpenGL" ${GL})
|
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(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)
|
project(emulationstation-all)
|
||||||
|
|
||||||
|
@ -59,7 +60,11 @@ find_package(SDL2 REQUIRED)
|
||||||
find_package(CURL REQUIRED)
|
find_package(CURL REQUIRED)
|
||||||
find_package(VLC REQUIRED)
|
find_package(VLC REQUIRED)
|
||||||
find_package(RapidJSON REQUIRED)
|
find_package(RapidJSON REQUIRED)
|
||||||
find_package(libCEC)
|
|
||||||
|
#add libCEC support
|
||||||
|
if(CEC)
|
||||||
|
find_package(libCEC REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
#add ALSA for Linux
|
#add ALSA for Linux
|
||||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||||
|
|
Loading…
Reference in a new issue