Use libXtst again with CMake (#1908)

* Use libXtst again with CMake

It seems that Xtst was never used after the transition to CMake.

This is related to https://github.com/stepmania/stepmania/issues/1902.

* Travis: install libxtst-dev
This commit is contained in:
Elias Kunnas
2019-10-24 08:22:42 -07:00
committed by Colby Klein
parent 9bf8f40a1c
commit 0bd2365ebc
5 changed files with 29 additions and 1 deletions
+1
View File
@@ -106,5 +106,6 @@ elseif(LINUX)
option(WITH_PULSEAUDIO "Build with PulseAudio support" ON)
option(WITH_JACK "Build with JACK support" OFF)
option(WITH_XRANDR "Build with Xrandr support" ON)
option(WITH_LIBXTST "Build with libXtst support" ON)
option(WITH_X11 "Build with X11 support" ON)
endif()
+17
View File
@@ -0,0 +1,17 @@
find_path(LIBXTST_INCLUDE_DIR NAMES X11/extensions/XTest.h
PATHS /opt/X11/include
PATH_SUFFIXES X11/extensions
DOC "The libXtst include directory"
)
find_library(LIBXTST_LIBRARY NAMES Xtst
PATHS /opt/X11/lib
DOC "The libXtst library"
)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBXTST DEFAULT_MSG LIBXTST_LIBRARY LIBXTST_INCLUDE_DIR)
mark_as_advanced(LIBXTST_INCLUDE_DIR LIBXTST_LIBRARY)