Include X11 libs and header without screensaver.

We need to always include these files and libs now due to using them
on our keyboard background input solution.
This commit is contained in:
Edênis Freindorfer Azevedo 2020-08-01 17:35:11 -03:00 committed by Rafael Kitover
parent 7031c1d155
commit 790628961d
1 changed files with 5 additions and 2 deletions

View File

@ -79,9 +79,12 @@ endif()
if(NOT WIN32 AND NOT APPLE) if(NOT WIN32 AND NOT APPLE)
find_package(X11) find_package(X11)
if(X11_X11_LIB AND X11_Xscreensaver_LIB) if(X11_X11_LIB)
include_directories(${X11_INCLUDE_DIR}) include_directories(${X11_INCLUDE_DIR})
list(APPEND VBAM_LIBS ${X11_X11_LIB} ${X11_Xscreensaver_LIB}) list(APPEND VBAM_LIBS ${X11_X11_LIB})
endif()
if(X11_Xscreensaver_LIB)
list(APPEND VBAM_LIBS ${X11_Xscreensaver_LIB})
add_definitions(-DHAVE_XSS) add_definitions(-DHAVE_XSS)
endif() endif()
endif() endif()