Skip to content

Commit

Permalink
Merge pull request Aloshi#597 from 5schatten/libcec
Browse files Browse the repository at this point in the history
CMakeList.txt: add option to disable libCEC / enabled by default
  • Loading branch information
tomaz82 authored Aug 31, 2019
2 parents 5edecef + 2e6b632 commit e600a99
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit e600a99

Please sign in to comment.