Browse Source

Added XCOMPOSITE and XDAMAGE checks to CMake rules.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/1/head
Mavridis Philippe 6 months ago
parent
commit
d3a391bcd6
Signed by: blu.256 GPG Key ID: F8D2D7E2F989A494
  1. 1
      CMakeLists.txt
  2. 16
      ConfigureChecks.cmake
  3. 3
      config.h.cmake
  4. 2
      src/CMakeLists.txt

1
CMakeLists.txt

@ -48,6 +48,7 @@ tde_setup_paths( )
option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
option( WITH_XCOMPOSITE "Enable xcomposite support" ON )
##### user requested modules ####################

16
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 )

3
config.h.cmake

@ -10,3 +10,6 @@
/* Defined if you don't have either the XTest headers or
the xcb-util-keysyms headers */
#cmakedefine NO_XTEST_EXTENSION 1
// Defined if you have both XComposite and XDamage.
#cmakedefine COMPOSITE 1

2
src/CMakeLists.txt

@ -28,6 +28,8 @@ tde_add_executable( ${PROJECT_NAME} AUTOMOC
tdecore-shared
tdeui-shared
${IMLIB2_LIBRARIES}
${XDAMAGE_LIBRARIES}
${XCOMPOSITE_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)

Loading…
Cancel
Save