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(PkgConfig)
10 add_definitions(-DUSE_XTEST -DUSE_I18N)
12 add_executable(xvkbd xvkbd.c findwidget.c)
17 pkg_check_modules(XAWLIB REQUIRED xaw7)
18 list(APPEND XVFBDLIBS ${XAWLIB_LIBRARIES})
19 pkg_check_modules(XTEST REQUIRED xtst)
20 list(APPEND XVFBDLIBS ${XTEST_LIBRARIES})
22 list(APPEND XVFBDLIBS -lXaw7)
23 foreach(_lb Xt XTest X11)
25 list(APPEND XVFBDLIBS ${X11_${_lb}_LIB})
27 message(FATAL_ERROR "Library for ${_lb} not found")
32 target_link_libraries(xvkbd ${XVFBDLIBS})