summaryrefslogtreecommitdiffstats
path: root/configdialog/CMakeLists.txt
blob: 542194cafe6079931461b4e63cf95e2f3df8eca1 (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
SET(kbfxconfigappsrc
    main.cpp
    kbfxconfigapp.cpp
    )

SET(kbfxconfigappui
    kbfxthemeinfo.ui
    kbfxconfigdlgbutton.ui
    kbfxconfigdlgmain.ui
    kbfxconfigdlgthemes.ui
    kbfxconfigdlgabout.ui
    kbfxconfigdlgstyle.ui
    kbfxconfigdlgtooltip.ui
    kbfxconfigdlgfonts-old.ui
    kbfxconfigdlgplugins.ui
    kbfxconfigdlglayout.ui
    )

IF (NOT USE_KDE4)
	KDE3_AUTOMOC(${kbfxconfigappsrc})

	KDE3_ADD_UI_FILES(kbfxconfigappsrc ${kbfxconfigappui})

	KDE3_ADD_EXECUTABLE(kbfxconfigapp ${kbfxconfigappsrc})

	TARGET_LINK_LIBRARIES(kbfxconfigapp
	    kbfxdata
	    kbfxcommon
	    ${QT_AND_TDECORE_LIBS}
	    -lDCOP
	    ${KDE3_KIO_LIBRARY}
	    ${KDE3_UI_LIBRARY}
            -lkhtml
	    )
ELSE (NOT USE_KDE4)
	KDE4_AUTOMOC(${kbfxconfigappsrc})

	KDE4_ADD_UI3_FILES(kbfxconfigappsrc ${kbfxconfigappui})

	KDE4_ADD_EXECUTABLE(kbfxconfigapp ${kbfxconfigappsrc})

	TARGET_LINK_LIBRARIES(kbfxconfigapp
	    kbfxdata
	    kbfxcommon
	    ${KDE4_TDECORE_LIBS}
	    ${KDE4_KIO_LIBS}
	    ${KDE4_TDEUI_LIBS}
	    )
ENDIF (NOT USE_KDE4)

INSTALL(TARGETS kbfxconfigapp
    RUNTIME DESTINATION ${BIN_INSTALL_DIR})

INSTALL(FILES kbfxconfigappui.rc DESTINATION ${DATA_INSTALL_DIR}/kbfxconfigapp)
INSTALL(FILES kbfxconfigapp.desktop kbfx_theme.desktop DESTINATION ${XDG_APPS_DIR})
INSTALL(FILES kbfx_install_theme.desktop kbfx_prepare_theme.desktop
    DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus)
INSTALL(FILES x-kbfxtheme.desktop
    DESTINATION ${MIME_INSTALL_DIR}/application)