Commit 94f42230 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add cmake support (not tested)

svn path=/trunk/KDE/kdemultimedia/libkcddb/; revision=517820
parent 942839a5
kde4_header()
add_subdirectory( test )
add_subdirectory( kcmcddb )
message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}: skipped subdir $(MB_DIR)")
include_directories( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
########### next target ###############
set(kcddb_LIB_SRCS
cache.cpp
cdinfo.cpp
config.cpp
client.cpp
cddb.cpp
lookup.cpp
cddbplookup.cpp
synccddbplookup.cpp
asynccddbplookup.cpp
httplookup.cpp
synchttplookup.cpp
asynchttplookup.cpp
smtpsubmit.cpp
asyncsmtpsubmit.cpp
syncsmtpsubmit.cpp
submit.cpp
sites.cpp
httpsubmit.cpp
asynchttpsubmit.cpp
synchttpsubmit.cpp
categories.cpp
genres.cpp
cdinfodialog.cpp
cdinfoencodingwidget.cpp )
kde4_automoc(${kcddb_LIB_SRCS})
kde4_add_ui_files(kcddb_LIB_SRCS cdinfodialogbase.ui cdinfoencodingwidgetbase.ui )
kde4_add_kcfg_files(kcddb_LIB_SRCS configbase.kcfgc )
kde4_add_library(kcddb SHARED ${kcddb_LIB_SRCS})
target_link_libraries(kcddb ${QT_AND_KDECORE_LIBS} kio )
set_target_properties(kcddb PROPERTIES VERSION 1.0.0 SOVERSION 1 )
install_targets(${LIB_INSTALL_DIR} kcddb )
########### install files ###############
install_files( /include/libkcddb FILES cdinfo.h client.h config.h cddb.h configbase.h )
install_files( ${KCFG_INSTALL_DIR} FILES libkcddb.kcfg )
kde4_footer()
#original Makefile.am contents follow:
#if build_MB
# MB_DIR = musicbrainz
# mb_lib = $(top_builddir)/libkcddb/musicbrainz/libmusicbrainz.la
#endif
#
#
#
#SUBDIRS = $(MB_DIR) . test kcmcddb
#
#INCLUDES = -I$(srcdir)/.. $(all_includes)
#
#lib_LTLIBRARIES = libkcddb.la
#
#libkcddb_la_SOURCES = \
# cache.cpp cdinfo.cpp config.cpp client.cpp cddb.cpp lookup.cpp \
# cddbplookup.cpp synccddbplookup.cpp asynccddbplookup.cpp httplookup.cpp \
# synchttplookup.cpp asynchttplookup.cpp smtpsubmit.cpp \
# asyncsmtpsubmit.cpp syncsmtpsubmit.cpp configbase.kcfgc \
# submit.cpp sites.cpp httpsubmit.cpp asynchttpsubmit.cpp \
# synchttpsubmit.cpp categories.cpp genres.cpp \
# cdinfodialog.cpp cdinfodialogbase.ui cdinfoencodingwidget.cpp \
# cdinfoencodingwidgetbase.ui
#
#libkcddb_la_LDFLAGS = $(all_libraries) -version-info 1:0:0 -no-undefined
#libkcddb_la_LIBADD = $(LIB_KDECORE) $(LIB_KIO) $(mb_lib)
#
#
#METASOURCES = AUTO
#
#kde_kcfg_DATA = libkcddb.kcfg
#
#kcddbincludedir = $(includedir)/libkcddb
#kcddbinclude_HEADERS = \
# cdinfo.h client.h config.h cddb.h configbase.h
#
#messages: rc.cpp
# $(XGETTEXT) *.cpp -o $(podir)/libkcddb.pot
#
#config.lo: configbase.h
kde4_header()
include_directories( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
########### next target ###############
set(kcm_cddb_PART_SRCS cddbconfigwidget.cpp kcmcddb.cpp )
kde4_automoc(${kcm_cddb_PART_SRCS})
kde4_add_ui_files(kcm_cddb_PART_SRCS cddbconfigwidgetbase.ui )
kde4_add_plugin(kcm_cddb ${kcm_cddb_PART_SRCS})
kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} kcm_cddb )
target_link_libraries(kcm_cddb ${QT_AND_KDECORE_LIBS} kcddb kdeui )
install_targets(${LIB_INSTALL_DIR}/kde4 kcm_cddb )
########### install files ###############
install_files( ${XDG_APPS_DIR} FILES libkcddb.desktop )
install_files( ${DATA_INSTALL_DIR}/kconf_update FILES kcmcddb-emailsettings.upd )
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
kde4_header()
include_directories( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
########### next target ###############
########### install files ###############
kde4_footer()
#original Makefile.am contents follow:
#INCLUDES = -I$(srcdir)/.. $(all_includes)
#
#noinst_LTLIBRARIES = libmusicbrainz.la
#libmusicbrainz_la_SOURCES = musicbrainzlookup.cpp sha1.c
#libmusicbrainz_la_LIBADD = -lmusicbrainz
#
#METASOURCES = AUTO
#
kde4_header()
include_directories( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
########### next target ###############
set(syncsmtpsubmittest_SRCS syncsmtpsubmittest.cpp )
kde4_automoc(${syncsmtpsubmittest_SRCS})
if(KDE4_BUILD_TESTS)
kde4_add_executable(syncsmtpsubmittest ${syncsmtpsubmittest_SRCS})
target_link_libraries(syncsmtpsubmittest ${QT_AND_KDECORE_LIBS} kcddb )
endif(KDE4_BUILD_TESTS)
########### next target ###############
set(asyncsmtpsubmittest_SRCS asyncsmtpsubmittest.cpp )
kde4_automoc(${asyncsmtpsubmittest_SRCS})
if(KDE4_BUILD_TESTS)
kde4_add_executable(asyncsmtpsubmittest ${asyncsmtpsubmittest_SRCS})
target_link_libraries(asyncsmtpsubmittest ${QT_AND_KDECORE_LIBS} kcddb )
endif(KDE4_BUILD_TESTS)
########### next target ###############
set(asynchttplookuptest_SRCS asynchttplookuptest.cpp )
kde4_automoc(${asynchttplookuptest_SRCS})
if(KDE4_BUILD_TESTS)
kde4_add_executable(asynchttplookuptest ${asynchttplookuptest_SRCS})
target_link_libraries(asynchttplookuptest ${QT_AND_KDECORE_LIBS} kcddb QtTest_debug )
endif(KDE4_BUILD_TESTS)
########### next target ###############
set(asynccddblookuptest_SRCS asynccddblookuptest.cpp )
kde4_automoc(${asynccddblookuptest_SRCS})
if(KDE4_BUILD_TESTS)
kde4_add_executable(asynccddblookuptest ${asynccddblookuptest_SRCS})
target_link_libraries(asynccddblookuptest ${QT_AND_KDECORE_LIBS} kcddb )
endif(KDE4_BUILD_TESTS)
########### next target ###############
set(synccddblookuptest_SRCS synccddblookuptest.cpp )
kde4_automoc(${synccddblookuptest_SRCS})
if(KDE4_BUILD_TESTS)
kde4_add_executable(synccddblookuptest ${synccddblookuptest_SRCS})
target_link_libraries(synccddblookuptest ${QT_AND_KDECORE_LIBS} kcddb QtTest_debug )
endif(KDE4_BUILD_TESTS)
########### next target ###############
set(synchttplookuptest_SRCS synchttplookuptest.cpp )
kde4_automoc(${synchttplookuptest_SRCS})
if(KDE4_BUILD_TESTS)
kde4_add_executable(synchttplookuptest ${synchttplookuptest_SRCS})
target_link_libraries(synchttplookuptest ${QT_AND_KDECORE_LIBS} kcddb )
endif(KDE4_BUILD_TESTS)
########### next target ###############
set(asynchttpsubmittest_SRCS asynchttpsubmittest.cpp )
kde4_automoc(${asynchttpsubmittest_SRCS})
if(KDE4_BUILD_TESTS)
kde4_add_executable(asynchttpsubmittest ${asynchttpsubmittest_SRCS})
target_link_libraries(asynchttpsubmittest ${QT_AND_KDECORE_LIBS} kcddb )
endif(KDE4_BUILD_TESTS)
########### next target ###############
set(synchttpsubmittest_SRCS synchttpsubmittest.cpp )
kde4_automoc(${synchttpsubmittest_SRCS})
if(KDE4_BUILD_TESTS)
kde4_add_executable(synchttpsubmittest ${synchttpsubmittest_SRCS})
target_link_libraries(synchttpsubmittest ${QT_AND_KDECORE_LIBS} kcddb )
endif(KDE4_BUILD_TESTS)
########### next target ###############
set(sitestest_SRCS sitestest.cpp )
kde4_automoc(${sitestest_SRCS})
if(KDE4_BUILD_TESTS)
kde4_add_executable(sitestest ${sitestest_SRCS})
target_link_libraries(sitestest ${QT_AND_KDECORE_LIBS} kcddb )
endif(KDE4_BUILD_TESTS)
########### next target ###############
set(utf8test_SRCS utf8test.cpp )
kde4_automoc(${utf8test_SRCS})
if(KDE4_BUILD_TESTS)
kde4_add_executable(utf8test ${utf8test_SRCS})
target_link_libraries(utf8test ${QT_AND_KDECORE_LIBS} kcddb )
endif(KDE4_BUILD_TESTS)
########### next target ###############
set(musicbrainztest_SRCS musicbrainztest.cpp )
kde4_automoc(${musicbrainztest_SRCS})
if(KDE4_BUILD_TESTS)
kde4_add_executable(musicbrainztest ${musicbrainztest_SRCS})
target_link_libraries(musicbrainztest ${QT_AND_KDECORE_LIBS} kcddb QtTest_debug )
endif(KDE4_BUILD_TESTS)
########### next target ###############
set(cdinfotest_SRCS cdinfotest.cpp )
kde4_automoc(${cdinfotest_SRCS})
if(KDE4_BUILD_TESTS)
kde4_add_executable(cdinfotest ${cdinfotest_SRCS})
target_link_libraries(cdinfotest ${QT_AND_KDECORE_LIBS} kcddb QtTest_debug )
endif(KDE4_BUILD_TESTS)
########### install files ###############
kde4_footer()
#original Makefile.am contents follow:
#INCLUDES = -I$(top_srcdir) -I$(top_builddir)/libkcddb $(all_includes)
#
#check_PROGRAMS = syncsmtpsubmittest asyncsmtpsubmittest asynchttplookuptest \
# asynccddblookuptest synccddblookuptest synchttplookuptest \
# asynchttpsubmittest synchttpsubmittest sitestest utf8test \
# musicbrainztest cdinfotest
#
#AM_LDFLAGS = $(QT_LDFLAGS) $(X_LDFLAGS) $(KDE_RPATH)
#
#syncsmtpsubmittest_SOURCES = syncsmtpsubmittest.cpp
#syncsmtpsubmittest_LDFLAGS = $(all_libraries)
#syncsmtpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la
#
#asyncsmtpsubmittest_SOURCES = asyncsmtpsubmittest.cpp
#asyncsmtpsubmittest_LDFLAGS = $(all_libraries)
#asyncsmtpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la
#
#asynchttplookuptest_SOURCES = asynchttplookuptest.cpp
#asynchttplookuptest_LDFLAGS = $(all_libraries)
#asynchttplookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la -lQtTest_debug
#
#asynccddblookuptest_SOURCES = asynccddblookuptest.cpp
#asynccddblookuptest_LDFLAGS = $(all_libraries)
#asynccddblookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la
#
#synchttplookuptest_SOURCES = synchttplookuptest.cpp
#synchttplookuptest_LDFLAGS = $(all_libraries)
#synchttplookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la
#
#synccddblookuptest_SOURCES = synccddblookuptest.cpp
#synccddblookuptest_LDFLAGS = $(all_libraries)
#synccddblookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la -lQtTest_debug
#
#synchttpsubmittest_SOURCES = synchttpsubmittest.cpp
#synchttpsubmittest_LDFLAGS = $(all_libraries)
#synchttpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la
#
#asynchttpsubmittest_SOURCES = asynchttpsubmittest.cpp
#asynchttpsubmittest_LDFLAGS = $(all_libraries)
#asynchttpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la
#
#musicbrainztest_SOURCES = musicbrainztest.cpp
#musicbrainztest_LDFLAGS = $(all_libraries)
#musicbrainztest_LDADD = $(top_builddir)/libkcddb/libkcddb.la -lQtTest_debug
#
#utf8test_SOURCES = utf8test.cpp
#utf8test_LDFLAGS = $(all_libraries)
#utf8test_LDADD = $(top_builddir)/libkcddb/libkcddb.la
#
#sitestest_SOURCES = sitestest.cpp
#sitestest_LDFLAGS = $(all_libraries)
#sitestest_LDADD = $(top_builddir)/libkcddb/libkcddb.la
#
#cdinfotest_SOURCES = cdinfotest.cpp
#cdinfotest_LDFLAGS = $(all_libraries)
#cdinfotest_LDADD = $(top_builddir)/libkcddb/libkcddb.la -lQtTest_debug
#
#TESTS = synccddblookuptest cdinfotest asynchttplookuptest musicbrainztest
#
#METASOURCES = AUTO
#
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment