diff options
author | gregory guy <gregory-tde@laposte.net> | 2020-09-24 15:26:15 +0200 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-09-28 00:26:31 +0900 |
commit | 132786c1940e2e205a2263568186a142dc9f3d48 (patch) | |
tree | 4211cc414451535082d530e7fdbd9d7cecd996d9 /CMakeLists.txt | |
parent | 3932891e3b88a707644551486dfdc6a2b5bae539 (diff) | |
download | tdelibs-132786c1940e2e205a2263568186a142dc9f3d48.tar.gz tdelibs-132786c1940e2e205a2263568186a142dc9f3d48.zip |
Add definitions for X11_RGBFILE and XMLLINT in config.h
Signed-off-by: gregory guy <gregory-tde@laposte.net>
(cherry picked from commit 2706c5674eb1ea3fffdca4d8c3edb3b25335e731)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 04754eb00..1b673e2ff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1164,6 +1164,30 @@ if( NOT WIN32 AND NOT ICEAUTH_PATH ) endif( NOT WIN32 AND NOT ICEAUTH_PATH ) +##### find the rgb.txt file + +message( STATUS "Looking for rgb.txt" ) +find_file( PATH_RGB rgb.txt + PATHS + /usr/share/X11 + /usr/X11R6/lib/X11 + /usr/openwin/lib/X11 +) +if( PATH_RGB ) + message( STATUS "Found rgb.txt file: ${PATH_RGB}" ) + set( X11_RGBFILE "${PATH_RGB}" ) +endif() + + +##### Look for xmllint + +find_program( XMLLINT_EXE xmllint ) +if( XMLLINT_EXE ) + set( XMLLINT "${XMLLINT_EXE}" ) + message( STATUS "Found xmllint: ${XMLLINT}" ) +endif() + + ##### write configure files ##################### configure_file( config.h.cmake config.h ) |