Warning, /system/qtcurve/qt4/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 if(ENABLE_QT4 AND NOT ENABLE_QT4_DEFINED)
0002   # ENABLE_QT4 is not defined on the command line
0003   find_package(Qt4 4.6.0)
0004   if(NOT Qt4_FOUND AND NOT QT4_FOUND)
0005     ## NB: this gets activated on OS X 10.9/MacPorts even when Qt is found,
0006     ## making it obligatory to define ENABLE_QT4 on the command line
0007     message(WARNING "Qt4 not found.")
0008     set(ENABLE_QT4 Off)
0009     set(ENABLE_QT4 Off PARENT_SCOPE)
0010   endif()
0011 endif()
0012 
0013 if (QTC_QT4_ENABLE_KDE AND NOT QTC_QT4_ENABLE_KDE_DEFINED)
0014     find_package(KDE4)
0015     if(NOT KDE4_FOUND)
0016         set(QTC_QT4_ENABLE_KDE OFF)
0017     endif()
0018 endif()
0019 
0020 add_definitions(-DQTC_UTILS_QT4 -DQTC_UTILS_QT)
0021 
0022 if(ENABLE_QT4)
0023   find_package(Qt4 4.6.0 REQUIRED)
0024   # search packages used by KDE
0025   if(QTC_QT4_ENABLE_KDE)
0026     find_package(KDE4 REQUIRED)
0027     include(KDE4Defaults)
0028     set(QTCURVE_STYLE_DIR "${PLUGIN_INSTALL_DIR}/plugins/styles/")
0029     if(NOT Q_WS_X11 OR NOT QTC_X11_FOUND)
0030       # Kwin headers uses a lot of xcb types and functions and we cannot
0031       # provide declarations for all of them even if they are not used.
0032       if(QTC_QT4_ENABLE_KWIN)
0033         message(WARNING "KWin4 support require Q_WS_X11 and libxcb headers.")
0034       endif()
0035       set(QTC_QT4_ENABLE_KWIN Off)
0036     elseif(NOT DEFINED QTC_QT4_ENABLE_KWIN)
0037       find_package(KDE4Workspace)
0038       set(QTC_QT4_ENABLE_KWIN "${KDE4Workspace_FOUND}")
0039     elseif(QTC_QT4_ENABLE_KWIN)
0040       find_package(KDE4Workspace REQUIRED)
0041     endif()
0042   else()
0043     set(QTC_QT4_ENABLE_KWIN Off)
0044     set(QTCURVE_STYLE_DIR "${QT_PLUGINS_DIR}/styles/")
0045   endif()
0046   add_definitions(${QT_DEFINITIONS})
0047   include_directories(
0048     "${CMAKE_CURRENT_BINARY_DIR}"
0049     "${CMAKE_CURRENT_SOURCE_DIR}")
0050   include_directories(SYSTEM "${QT_INCLUDE_DIR}")
0051 
0052   if(QTC_QT4_ENABLE_KDE)
0053     add_definitions(${KDE4_DEFINITIONS} -DQTC_QT4_ENABLE_KDE)
0054     include_directories(SYSTEM ${KDE4_INCLUDES})
0055   endif()
0056 else()
0057   set(QTC_QT4_ENABLE_KDE Off)
0058   set(QTC_QT4_ENABLE_KWIN Off)
0059 endif()
0060 
0061 add_subdirectory(colors)
0062 add_subdirectory(common)
0063 add_subdirectory(config)
0064 add_subdirectory(themes)
0065 add_subdirectory(kwin)
0066 add_subdirectory(kwinconfig)
0067 add_subdirectory(style)