Add XF86keysym.h detection and use to CMake system, for r34983.

This commit is contained in:
Guillermo S. Romero 2011-02-19 23:51:55 +00:00
parent 43d362fcc8
commit c37884b015
2 changed files with 6 additions and 0 deletions

@ -338,6 +338,7 @@ if(UNIX AND NOT APPLE)
endif()
find_package(X11 REQUIRED)
find_path(X11_XF86keysym_INCLUDE_PATH X11/XF86keysym.h ${X11_INC_SEARCH_PATH})
# OpenSuse needs lutil, ArchLinux not, for now keep, can avoid by using --as-needed
set(LLIBS "-lutil -lc -lm -lpthread -lstdc++ ${X11_X11_LIB} ${X11_Xinput_LIB}")

@ -134,6 +134,11 @@ elseif(UNIX)
add_definitions(-DPREFIX="${CMAKE_INSTALL_PREFIX}")
if(X11_XF86keysym_INCLUDE_PATH)
add_definitions(-DWITH_XF86KEYSYM)
list(APPEND INC ${X11_XF86keysym_INCLUDE_PATH})
endif()
elseif(WIN32)
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")