Warning, /system/qtcurve/qt5/style/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set(qtcurve_SRCS
0002 prepolish.cpp
0003 qtcurve.cpp
0004 qtcurve_api.cpp
0005 qtcurve_plugin.cpp
0006 qtcurve_primitive.cpp
0007 qtcurve_utils.cpp
0008 windowmanager.cpp
0009 blurhelper.cpp
0010 utils.cpp
0011 shortcuthandler.cpp
0012 argbhelper.cpp
0013 shadowhelper.cpp)
0014 set(qtcurve_MOC_HDRS
0015 qtcurve.h
0016 qtcurve_p.h
0017 qtcurve_plugin.h
0018 windowmanager.h
0019 blurhelper.h
0020 shortcuthandler.h
0021 argbhelper.h
0022 shadowhelper.h)
0023
0024 translate_add_sources(${qtcurve_SRCS} ${qtcurve_MOC_HDRS})
0025
0026 if(NOT ENABLE_QT5)
0027 return()
0028 endif()
0029
0030 if(QTC_QT5_ENABLE_QTQUICK2)
0031 add_definitions(-DQTC_QT5_ENABLE_QTQUICK2=1)
0032 endif()
0033
0034 set(qtcurve_style_common_SRCS
0035 ../common/common.cpp
0036 ../common/config_file.cpp)
0037
0038 foreach(pngname check_on check_x_on dialog_error dialog_information
0039 dialog_warning)
0040 add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${pngname}-png.h"
0041 COMMAND "${PROJECT_BINARY_DIR}/tools/qt-dump-png"
0042 "${PROJECT_SOURCE_DIR}/data/${pngname}.png" "qtc_${pngname}"
0043 "${CMAKE_CURRENT_BINARY_DIR}/${pngname}-png.h"
0044 DEPENDS qt-dump-png "${PROJECT_SOURCE_DIR}/data/${pngname}.png")
0045 add_custom_target(qtc_qt5_${pngname}_hdr
0046 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${pngname}-png.h")
0047 endforeach()
0048
0049 set(qtcurve_SRCS ${qtcurve_SRCS} ${qtcurve_style_common_SRCS})
0050
0051 add_definitions(-DQT_PLUGIN)
0052 include_directories(
0053 "${CMAKE_CURRENT_SOURCE_DIR}"
0054 "${CMAKE_CURRENT_BINARY_DIR}"
0055 ${Qt5Widgets_PRIVATE_INCLUDE_DIRS}
0056 ${Qt5Gui_PRIVATE_INCLUDE_DIRS})
0057 if(NOT QTC_QT5_ENABLE_KDE)
0058 qt5_wrap_cpp(qtcurve_MOC_SRCS ${qtcurve_MOC_HDRS})
0059 else()
0060 set(qtcurve_MOC_SRCS)
0061 endif()
0062 add_library(qtcurve-qt5 MODULE ${qtcurve_SRCS} ${qtcurve_MOC_SRCS})
0063 set_target_properties(qtcurve-qt5 PROPERTIES
0064 OUTPUT_NAME "qtcurve"
0065 LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
0066 PREFIX "")
0067 add_dependencies(qtcurve-qt5 qtc_qt5_check_on_hdr qtc_qt5_check_x_on_hdr
0068 qtc_qt5_dialog_error_hdr qtc_qt5_dialog_information_hdr
0069 qtc_qt5_dialog_warning_hdr)
0070 target_link_libraries(qtcurve-qt5 ${QTC_QT5_LINK_LIBS} qtcurve-utils)
0071 if(QTC_QT5_ENABLE_KDE)
0072 target_link_libraries(qtcurve-qt5
0073 KF5::ConfigCore
0074 KF5::GuiAddons
0075 KF5::IconThemes
0076 KF5::Style
0077 KF5::WidgetsAddons
0078 KF5::WindowSystem
0079 KF5::XmlGui
0080 )
0081 endif()
0082 install(TARGETS qtcurve-qt5 LIBRARY DESTINATION ${QTCURVE_STYLE_DIR})
0083
0084 if(QTC_QT5_ENABLE_KDE)
0085 foreach(dir DATA_INSTALL_DIR KDE_INSTALL_DATADIR CMAKE_INSTALL_DATADIR
0086 SHARE_INSTALL_PREFIX KDE_INSTALL_DATAROOTDIR CMAKE_INSTALL_DATAROOTDIR)
0087 unset(${dir})
0088 unset(${dir} CACHE)
0089 endforeach()
0090 include(KDEInstallDirs)
0091 install(FILES qtcurve.themerc
0092 DESTINATION ${KDE_INSTALL_DATADIR}/kstyle/themes)
0093 endif()