Warning, /plasma/oxygen/kstyle/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 ################# includes ################# 0002 include_directories( 0003 animations 0004 debug 0005 transitions 0006 ) 0007 0008 include_directories(${CMAKE_SOURCE_DIR}/liboxygen) 0009 include_directories(${CMAKE_BINARY_DIR}/liboxygen) 0010 0011 ########### next target ############### 0012 set(oxygen_PART_SRCS 0013 animations/oxygenanimations.cpp 0014 animations/oxygenanimationdata.cpp 0015 animations/oxygenbaseengine.cpp 0016 animations/oxygenbusyindicatordata.cpp 0017 animations/oxygenbusyindicatorengine.cpp 0018 animations/oxygendockseparatordata.cpp 0019 animations/oxygendockseparatorengine.cpp 0020 animations/oxygenenabledata.cpp 0021 animations/oxygengenericdata.cpp 0022 animations/oxygenheaderviewdata.cpp 0023 animations/oxygenheaderviewengine.cpp 0024 animations/oxygenmdiwindowdata.cpp 0025 animations/oxygenmdiwindowengine.cpp 0026 animations/oxygenmenubardata.cpp 0027 animations/oxygenmenubarengine.cpp 0028 animations/oxygenmenudata.cpp 0029 animations/oxygenmenuengine.cpp 0030 animations/oxygenprogressbardata.cpp 0031 animations/oxygenprogressbarengine.cpp 0032 animations/oxygenscrollbardata.cpp 0033 animations/oxygenscrollbarengine.cpp 0034 animations/oxygenspinboxdata.cpp 0035 animations/oxygenspinboxengine.cpp 0036 animations/oxygensplitterengine.cpp 0037 animations/oxygentabbardata.cpp 0038 animations/oxygentabbarengine.cpp 0039 animations/oxygentoolbardata.cpp 0040 animations/oxygentoolbarengine.cpp 0041 animations/oxygentoolboxengine.cpp 0042 animations/oxygenwidgetstatedata.cpp 0043 animations/oxygenwidgetstateengine.cpp 0044 debug/oxygenwidgetexplorer.cpp 0045 transitions/oxygencomboboxdata.cpp 0046 transitions/oxygencomboboxengine.cpp 0047 transitions/oxygenlabeldata.cpp 0048 transitions/oxygenlabelengine.cpp 0049 transitions/oxygenlineeditdata.cpp 0050 transitions/oxygenlineeditengine.cpp 0051 transitions/oxygenstackedwidgetdata.cpp 0052 transitions/oxygenstackedwidgetengine.cpp 0053 transitions/oxygentransitiondata.cpp 0054 transitions/oxygentransitions.cpp 0055 transitions/oxygentransitionwidget.cpp 0056 oxygenblurhelper.cpp 0057 oxygenframeshadow.cpp 0058 oxygenmdiwindowshadow.cpp 0059 oxygenmnemonics.cpp 0060 oxygenpropertynames.cpp 0061 oxygenshadowhelper.cpp 0062 oxygensplitterproxy.cpp 0063 oxygenstyle.cpp 0064 oxygenstylehelper.cpp 0065 oxygenstyleplugin.cpp 0066 oxygenwindowmanager.cpp 0067 ) 0068 0069 kconfig_add_kcfg_files(oxygen_PART_SRCS oxygenstyleconfigdata.kcfgc) 0070 add_library(oxygen${QT_MAJOR_VERSION} MODULE ${oxygen_PART_SRCS}) 0071 0072 target_link_libraries(oxygen${QT_MAJOR_VERSION} Qt${QT_MAJOR_VERSION}::Core Qt${QT_MAJOR_VERSION}::Gui Qt${QT_MAJOR_VERSION}::Widgets Qt${QT_MAJOR_VERSION}::DBus Qt${QT_MAJOR_VERSION}::Quick) 0073 target_link_libraries(oxygen${QT_MAJOR_VERSION} KF${QT_MAJOR_VERSION}::GuiAddons KF${QT_MAJOR_VERSION}::Style KF${QT_MAJOR_VERSION}::WindowSystem) 0074 target_link_libraries(oxygen${QT_MAJOR_VERSION} oxygenstyle${QT_MAJOR_VERSION}) 0075 0076 if(OXYGEN_HAVE_X11) 0077 target_link_libraries(oxygen${QT_MAJOR_VERSION} XCB::XCB) 0078 if (QT_MAJOR_VERSION EQUAL "5") 0079 target_link_libraries(oxygen5 Qt5::X11Extras) 0080 else() 0081 target_link_libraries(oxygen6 Qt6::GuiPrivate) 0082 endif() 0083 endif() 0084 0085 install(TARGETS oxygen${QT_MAJOR_VERSION} DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/styles/) 0086 0087 if(WIN32) 0088 # As stated in http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx M_PI only gets defined 0089 # when using MSVC if _USE_MATH_DEFINES is defined (this is needed for angle.cpp) 0090 target_compile_definitions(oxygen${QT_MAJOR_VERSION} PRIVATE _USE_MATH_DEFINES _GNU_SOURCE) 0091 endif() 0092 0093 ########### install files ############### 0094 install(FILES oxygen.themerc DESTINATION ${KDE_INSTALL_DATADIR}/kstyle/themes) 0095 0096 ########### subdirectories ############### 0097 if(QT_MAJOR_VERSION EQUAL 6) 0098 add_subdirectory(config) 0099 endif() 0100 add_subdirectory(demo)