CMakeLists.txt 1.43 KB
Newer Older
1
2
kde4_header()

3
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_BINARY_DIR}/.. ${KDE4_INCLUDES} )
4
5
6
7
8


########### next target ###############

set(kcm_cddb_PART_SRCS cddbconfigwidget.cpp kcmcddb.cpp )
9
SET_SOURCE_FILES_PROPERTIES(cddbconfigwidget.cpp PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ui_cddbconfigwidget.h)
10
11
12

kde4_automoc(${kcm_cddb_PART_SRCS})

13
kde4_add_ui_files(kcm_cddb_PART_SRCS cddbconfigwidget.ui )
14
15
16
17
18

kde4_add_plugin(kcm_cddb ${kcm_cddb_PART_SRCS})

kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} kcm_cddb )

Laurent Montel's avatar
Laurent Montel committed
19
target_link_libraries(kcm_cddb  ${KDE4_KDEUI_LIBS} kcddb  )
20

21
install_targets(${PLUGIN_INSTALL_DIR} kcm_cddb )
22
23
24
25
26


########### install files ###############

install_files( ${XDG_APPS_DIR} FILES libkcddb.desktop )
27
install_files( ${KCONF_UPDATE_INSTALL_DIR} FILES kcmcddb-emailsettings.upd )
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

kde4_footer()



#original Makefile.am contents follow:

#INCLUDES = -I$(srcdir)/../.. -I.. $(all_includes)
#
#kde_module_LTLIBRARIES = kcm_cddb.la
#
#kcm_cddb_la_SOURCES = \
#  cddbconfigwidgetbase.ui cddbconfigwidget.cpp kcmcddb.cpp
#
#kcm_cddb_la_LDFLAGS = \
#  $(all_libraries) -module -avoid-version -no-undefined
#
#kcm_cddb_la_LIBADD = ../libkcddb.la $(LIB_KDEUI)
#
#kcm_cddb_la_COMPILE_FIRST = ../configbase.h
#
#METASOURCES = AUTO
#
#xdg_apps_DATA = libkcddb.desktop
#
#messages: rc.cpp
#	$(XGETTEXT) *.cpp -o $(podir)/kcmcddb.pot
#
#updatedir = $(kde_datadir)/kconf_update
#update_DATA = kcmcddb-emailsettings.upd