diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-04-01 17:23:51 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-04-01 17:53:09 +0300 |
commit | d3a391bcd6212e7841f5388921ad1640e5cd6dbd (patch) | |
tree | 907572fd58dcceb87c3e59dd8d14d75aefa32edd /ConfigureChecks.cmake | |
parent | 08cff8ad058fdd63303d2b1b218f73b26dfc7921 (diff) | |
download | kompose-d3a391bcd6212e7841f5388921ad1640e5cd6dbd.tar.gz kompose-d3a391bcd6212e7841f5388921ad1640e5cd6dbd.zip |
Added XCOMPOSITE and XDAMAGE checks to CMake rules.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 0d81d2a..c371ab2 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -33,6 +33,22 @@ endif( WITH_GCC_VISIBILITY ) find_package( X11 ) +##### check for XCOMPOSITE and XDAMAGE (needed for XCOMPOSITE) +if( WITH_XCOMPOSITE ) + pkg_search_module( XDAMAGE xdamage ) + if( NOT XDAMAGE_FOUND ) + tde_message_fatal( "xcomposite support was requested, but xdamage was not found on your system" ) + endif() + + pkg_search_module( XCOMPOSITE xcomposite ) + if( XCOMPOSITE_FOUND ) + set( COMPOSITE 1 ) + else() + tde_message_fatal( "xcomposite support was requested, but xcomposite was not found on your system" ) + endif() +endif( WITH_XCOMPOSITE ) + + ##### check for imlib2 pkg_search_module( IMLIB2 imlib2 ) |