MESSAGE(FATAL_ERROR"GTK was not found. Ensure you have the GTK development libraries installed, and GTK's pkgconfig files are in your pkgconfig search path.")
ENDIF(NOTGTK_INCLUDE_DIR)
MESSAGE(STATUS"Found GTK include dir: ${GTK_INCLUDE_DIR}")
SET(INSTALL_PATH_GTK_ENGINES"${GTK_LIB_DIR}/gtk-2.0/${GTK_VERSION}/engines"CACHEPATH"The directory in which to install the theme engine library (eg. /usr/lib/gtk-2.0/2.4.0/engines)")
MESSAGE(STATUS"Installing the GTK theme engine library to: ${INSTALL_PATH_GTK_ENGINES}")
EXEC_PROGRAM(
${PKGCONFIG_EXECUTABLE}
ARGS--variable=prefixgtk+-2.0
OUTPUT_VARIABLEGTK_PREFIX)
SET(INSTALL_PATH_GTK_THEMES"${GTK_PREFIX}/share/themes"CACHEPATH"The directory in which to install the theme data (eg. /usr/share/themes)")
MESSAGE(STATUS"Installing the GTK theme engine data to: ${INSTALL_PATH_GTK_THEMES}")
SET(INSTALL_PATH_KCONTROL_MODULES"${TDE_LIB_DIR}"CACHEPATH"The directory in which to install KControl plugins (eg. /usr/lib)")
MESSAGE(STATUS"Installing the KControl plugins to: ${INSTALL_PATH_KCONTROL_MODULES}")
MESSAGE(STATUS"Installing everything else to: ${CMAKE_INSTALL_PREFIX}")