1 # This file is part of LyX, the document processor.
2 # Licence details can be found in the file COPYING.
4 # Copyright (c) 2012 Kornel Benko kornel@lyx.org
8 find_package(X11 REQUIRED)
9 find_package(PkgConfig)
11 add_definitions(-DUSE_XTEST -DUSE_I18N)
13 add_executable(xvkbd xvkbd.c findwidget.c)
18 pkg_check_modules(XAWLIB REQUIRED xaw7)
19 list(APPEND XVFBDLIBS ${XAWLIB_LIBRARIES})
20 pkg_check_modules(XTEST REQUIRED xtst)
21 list(APPEND XVFBDLIBS ${XTEST_LIBRARIES})
23 list(APPEND XVFBDLIBS -lXaw7)
24 foreach(_lb Xt XTest X11)
26 list(APPEND XVFBDLIBS ${X11_${_lb}_LIB})
28 message(FATAL_ERROR "Library for ${_lb} not found")
33 target_link_libraries(xvkbd ${XVFBDLIBS})