summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
blob: c81c61676e0641aa53bce32b1dee813df47fc20f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
SET(libkbfxspinxsrc
	kbfxbutton.cpp
	kbfxplasmacanvasabstractitem.cpp
	kbfxplasmacanvasgroup.cpp
	kbfxplasmacanvasgroupview.cpp
	kbfxplasmacanvasitem.cpp
	kbfxplasmacanvasitem_events.cpp
	kbfxplasmacanvasitemwrapper.cpp
	kbfxplasmacanvasstack.cpp
	kbfxplasmacanvasview.cpp
	kbfxplasmaindexitem.cpp
	kbfxplasmaindexview.cpp
	kbfxspinx.cpp
	kbfxspinxmenu.cpp
	kbfxspinxpopup.cpp
	kbfxspinxscrollbar.cpp
	kbfxspinxtoolbar.cpp
	kbfxspinxtoolbutton.cpp
	kbfxspinxtop.cpp
	kbfxspinxview.cpp
	kbfxtooltip.cpp
	)

IF (NOT USE_KDE4)
	KDE3_ADD_DCOP_SKELS(libkbfxspinxsrc kbfxspinx.h)
	KDE3_AUTOMOC(${libkbfxspinxsrc})

	ADD_LIBRARY(kbfxspinx MODULE ${libkbfxspinxsrc})
	SET_TARGET_PROPERTIES(kbfxspinx
		PROPERTIES
		COMPILE_FLAGS ${CMAKE_SHARED_LIBRARY_CXX_FLAGS})
	# SET_TARGET_PROPERTIES(kbfxspinx PROPERTIES
	#     SOVERSION ${LIB_MAJOR}
	#     VERSION ${APPLICATION_VERSION})
	TARGET_LINK_LIBRARIES(kbfxspinx
	    kbfxdata
	    kbfxcommon
	    ${QT_AND_TDECORE_LIBS}
	    ${KDE3_UI_LIBRARY}
	    )

	KDE3_INSTALL_LIBTOOL_FILE(kbfxspinx ${PLUGIN_INSTALL_DIR})
ELSE (NOT USE_KDE4)
	# TODO: Have to rewrite it for DBUS.
	# Rewrite the DCOP interface (in src/) to DBUS for KDE4 support.
	# Should be done in a way to preserve KDE3 compatibility!
	KDE4_ADD_DCOP_SKELS(libkbfxspinxsrc kbfxspinx.h)
	KDE4_AUTOMOC(${libkbfxspinxsrc})

	KDE4_ADD_LIBRARY(kbfxspinx MODULE ${libkbfxspinxsrc})
	TARGET_LINK_LIBRARIES(kbfxspinx
	    kbfxdata
	    kbfxcommon
	    ${KDE4_TDECORE_LIBS}
	    ${KDE4_TDEUI_LIBS}
	    )

	KDE4_INSTALL_LIBTOOL_FILE(kbfxspinx ${PLUGIN_INSTALL_DIR})
ENDIF (NOT USE_KDE4)

INSTALL(TARGETS kbfxspinx DESTINATION ${PLUGIN_INSTALL_DIR})
INSTALL(FILES kbfxspinx.desktop DESTINATION ${DATA_INSTALL_DIR}/kicker/applets)