2009-08-22 08:24:06 +00:00
|
|
|
########### add version number into compilation defines
|
2013-01-01 14:01:16 +00:00
|
|
|
# FIXME: CPACK_PACKAGE_VERSION_* are empty
|
2013-08-01 18:20:44 +00:00
|
|
|
add_definitions (-DAPP_VERSION=\\\"${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}\\\")
|
2013-08-07 09:42:23 +00:00
|
|
|
add_definitions(-DHAVE_X11=${X11_FOUND})
|
2013-08-01 18:20:44 +00:00
|
|
|
add_subdirectory(config)
|
|
|
|
add_subdirectory(demo)
|
|
|
|
add_subdirectory(data)
|
2011-01-29 18:12:23 +00:00
|
|
|
|
2010-03-02 03:40:34 +00:00
|
|
|
include_directories(${KDEBASE_WORKSPACE_SOURCE_DIR}/libs/oxygen)
|
2009-08-22 08:24:06 +00:00
|
|
|
|
|
|
|
########### next target ###############
|
2009-09-15 06:25:06 +00:00
|
|
|
set(kwin_oxygen_SRCS
|
2009-09-15 07:12:54 +00:00
|
|
|
oxygenbutton.cpp
|
|
|
|
oxygenclient.cpp
|
2009-11-15 03:24:04 +00:00
|
|
|
oxygenclientgroupitemdata.cpp
|
2010-05-02 18:50:01 +00:00
|
|
|
oxygendecohelper.cpp
|
2009-09-15 07:12:54 +00:00
|
|
|
oxygenexceptionlist.cpp
|
2010-05-02 18:50:01 +00:00
|
|
|
oxygenfactory.cpp
|
2009-09-15 07:12:54 +00:00
|
|
|
oxygensizegrip.cpp
|
2009-12-18 15:20:04 +00:00
|
|
|
oxygentitleanimationdata.cpp
|
2009-08-22 08:24:06 +00:00
|
|
|
)
|
|
|
|
|
2012-11-23 09:09:39 +00:00
|
|
|
kde4_add_kcfg_files(kwin_oxygen_SRCS oxygenconfiguration.kcfgc )
|
|
|
|
|
2009-09-15 06:25:06 +00:00
|
|
|
kde4_add_plugin(kwin3_oxygen ${kwin_oxygen_SRCS})
|
2013-08-07 09:42:23 +00:00
|
|
|
target_link_libraries(kwin3_oxygen Qt5::Widgets )
|
|
|
|
target_link_libraries(kwin3_oxygen KF5::KConfigWidgets KF5::KGuiAddons KF5::KI18n KF5::KWindowSystem KF5::KStyle)
|
|
|
|
target_link_libraries(kwin3_oxygen kdecorations oxygenstyle)
|
|
|
|
|
|
|
|
if(X11_FOUND)
|
|
|
|
target_link_libraries(kwin3_oxygen ${X11_X11_LIB} ${XCB_XCB_LIBRARIES})
|
|
|
|
target_link_libraries(kwin3_oxygen Qt5::X11Extras)
|
|
|
|
endif()
|
2009-08-22 08:24:06 +00:00
|
|
|
|
2013-08-07 09:42:23 +00:00
|
|
|
install(TARGETS kwin3_oxygen DESTINATION ${PLUGIN_INSTALL_DIR})
|
2009-08-22 08:24:06 +00:00
|
|
|
|
|
|
|
########### install files ###############
|
2013-08-07 09:42:23 +00:00
|
|
|
install(FILES oxygenclient.desktop DESTINATION ${DATA_INSTALL_DIR}/kwin/)
|
2009-10-07 14:26:52 +00:00
|
|
|
|