diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-01-24 11:10:58 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-01-24 11:10:58 +0100 |
commit | fe4b0145deefb2e729cdbcaed41db9b452ef440d (patch) | |
tree | 92ecd256551a88a4fcfeb66c25d047f5fca7f893 /CMakeLists.txt | |
parent | a5982bd9913e7817ced01cde7bcac8438f81c8e3 (diff) | |
download | tigervnc-fe4b0145deefb2e729cdbcaed41db9b452ef440d.tar.gz tigervnc-fe4b0145deefb2e729cdbcaed41db9b452ef440d.zip |
Set all HAVE_ macros on the top level
This keep everything consistent.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f1bfd618..ba6b3203 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,6 +115,18 @@ endif() # X11 stuff. It's in a if() so that we can say REQUIRED if(UNIX AND NOT APPLE) find_package(X11 REQUIRED) + if(X11_Xdamage_LIB) + add_definitions(-DHAVE_XDAMAGE) + endif() + if(X11_Xfixes_LIB) + add_definitions(-DHAVE_XFIXES) + endif() + if(X11_Xrandr_LIB) + add_definitions(-DHAVE_XRANDR) + endif() + if(X11_XTest_LIB) + add_definitions(-DHAVE_XTEST) + endif() endif() # Check for zlib @@ -306,6 +318,9 @@ if(UNIX AND NOT APPLE) find_package(PkgConfig) if (PKG_CONFIG_FOUND) pkg_check_modules(LIBSYSTEMD libsystemd) + if (LIBSYSTEMD_FOUND) + add_definitions(-DHAVE_LIBSYSTEMD) + endif() endif() endif() |