Add module to compile kdebase with kdelibs-cmake.

BE CARREFULL: Don't try to compile it for the moment (in progress)
Don't use kdelibs trunk for compile it (there is not again test to disable
compile when we compile with kdelibs trunk)
For the moment there was a lot of missing test etc.
I commit it just to allow to lose my changes if there is a pb on my HD.
I will sync cmake from kdelibs trunk to kdelibs-snapshot.
I hope to fix compile today or tomorrow.
CCMAIL: neundorf@kde.org

For the futur we must sync kdelibs/cmake/* to kdelibs-snapshot 
to compile all the time with kdelibs-snapshot

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=514380
This commit is contained in:
Laurent Montel 2006-02-28 08:01:15 +00:00
parent 4b0358a37f
commit 8a63a2ff83
2 changed files with 97 additions and 0 deletions

57
CMakeLists.txt Normal file
View File

@ -0,0 +1,57 @@
kde4_header()
include_directories( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
########### next target ###############
set(plasma_LIB_SRCS
plasma.cpp
applet.cpp
appletChain.cpp
appletLayout.cpp
appletCompositor.cpp )
kde4_automoc(${plasma_LIB_SRCS})
kde4_add_library(plasma SHARED ${plasma_LIB_SRCS})
target_link_libraries(plasma ${QT_AND_KDECORE_LIBS} kio )
set_target_properties(plasma PROPERTIES VERSION 1.0.0 SOVERSION 1 )
install_targets(${LIB_INSTALL_DIR} plasma )
########### install files ###############
install_files( /include/plasma FILES applet.h plasma.h appletCompositor.h appletLayout.h )
kde4_footer()
#original Makefile.am contents follow:
#INCLUDES = $(all_includes)
#KDE_CXXFLAGS = -UQT3_SUPPORT
#lib_LTLIBRARIES = libplasma.la
#
#libplasma_la_SOURCES = plasma.cpp applet.cpp \
# appletChain.cpp appletLayout.cpp appletCompositor.cpp
#
#libplasma_la_METASOURCES = AUTO
#
#libplasma_la_LDFLAGS = $(all_libraries) -version-info 1:0:0 -no-undefined
#libplasma_la_LIBADD = $(LIB_KIO)
#
#libplasma_la_includedir = $(includedir)/plasma
#
#noinst_HEADERS =
#
#libplasma_la_include_HEADERS = applet.h plasma.h \
# appletCompositor.h appletLayout.h
#
##kde_kcfg_DATA = plasmaSettings.kcfg extensionSettings.kcfg
#
#messages: rc.cpp
# $(XGETTEXT) *.cpp *.h -o $(podir)/libplasma.pot

40
tests/CMakeLists.txt Normal file
View File

@ -0,0 +1,40 @@
kde4_header()
include_directories( ${CMAKE_SOURCE_DIR}/workspace/plasma/lib ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
########### next target ###############
set(testAppletInfo_SRCS testAppletInfo.cpp )
kde4_automoc(${testAppletInfo_SRCS})
kde4_add_executable(testAppletInfo ${testAppletInfo_SRCS})
target_link_libraries(testAppletInfo ${QT_AND_KDECORE_LIBS} )
########### install files ###############
kde4_footer()
#original Makefile.am contents follow:
#INCLUDES = -I$(top_srcdir)/workspace/plasma/lib $(all_includes)
#
#AM_LDFLAGS = $(QT_LDFLAGS) $(X_LDFLAGS) $(KDE_RPATH)
#
#noinst_PROGRAMS = testAppletInfo
#noinst_HEADERS = testAppletInfo.h
#
#METASOURCES = AUTO
#
#LDADD = ../libplasma.la -lQtTest_debug
#testAppletInfo_SOURCES = testAppletInfo.cpp
#
#check-local:
# opwd=$PWD; cd $(srcdir) && $$opwd/testAppletInfo
#