diff options
author | Alexander Neundorf <neundorf@kde.org> | 2006-01-07 16:35:35 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2006-01-07 16:35:35 +0000 |
commit | 5a927c38ec1d47da5cabadd887e53eed9aff332c (patch) | |
tree | 400e0b58de1911bf0291f8f0d559108e9b8f928f /samples/kpager | |
parent | ba732a732a6036c9c11c6635f574c199c6dfbab7 (diff) | |
download | extra-cmake-modules-5a927c38ec1d47da5cabadd887e53eed9aff332c.tar.gz extra-cmake-modules-5a927c38ec1d47da5cabadd887e53eed9aff332c.tar.bz2 |
-am2cmake: added support for installing kcfg files
-KDE3Macros.cmake: improved ADD_FILE_DEPEDENCY macro
-added sample CMakeLists.txt for kpager, kcalc, kio_man, and view1394
Alex
svn path=/trunk/KDE/kdesdk/cmake/; revision=495285
Diffstat (limited to 'samples/kpager')
-rw-r--r-- | samples/kpager/CMakeLists.txt | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/samples/kpager/CMakeLists.txt b/samples/kpager/CMakeLists.txt new file mode 100644 index 00000000..bd53d10f --- /dev/null +++ b/samples/kpager/CMakeLists.txt @@ -0,0 +1,70 @@ +FIND_PACKAGE(KDE3 REQUIRED) + +SET(CMAKE_VERBOSE_MAKEFILE ON) + +ADD_DEFINITIONS(${QT_DEFINITIONS} ${KDE3_DEFINITIONS}) + +LINK_DIRECTORIES(${KDE3_LIB_DIR}) + +INCLUDE_DIRECTORIES( ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) + + +########### next target ############### + +SET(kpager_SRCS +desktop.cpp +kpager.cpp +config.cpp +windowdrag.cpp +main.cpp +) + +KDE3_AUTOMOC(${kpager_SRCS}) + +SET( kpager_DCOP_SKEL_SRCS +kpagerIface.h +) + +KDE3_ADD_DCOP_SKELS(kpager_SRCS ${kpager_DCOP_SKEL_SRCS}) + +KDE3_ADD_EXECUTABLE(kpager ${kpager_SRCS}) + +TARGET_LINK_LIBRARIES(kpager ${QT_AND_KDECORE_LIBS} kdeui ) + +INSTALL_TARGETS(/bin kpager ) + + +########### install files ############### + +INSTALL_FILES( /share/applications/kde FILES kpager.desktop ) + +KDE3_INSTALL_ICONS( hicolor ) + +KDE3_PLACEHOLDER() + + + +#original Makefile.am contents follow: + +#INCLUDES= $(all_includes) +# +#bin_PROGRAMS = kpager +# +#kpager_SOURCES = desktop.cpp kpager.cpp config.cpp windowdrag.cpp \ +# kpagerIface.skel main.cpp +# +#kpager_METASOURCES = AUTO +#kpager_LDFLAGS = $(all_libraries) $(KDE_RPATH) +# +#kpager_LDADD = $(LIB_KDEUI) +# +#KDE_ICON = kpager +# +#xdg_apps_DATA = kpager.desktop +# +#install-data-local: uninstall.desktop +# $(mkinstalldirs) $(DESTDIR)$(kde_appsdir)/Utilities +# $(INSTALL_DATA) $(srcdir)/uninstall.desktop $(DESTDIR)$(kde_appsdir)/Utilities/kpager.desktop +# +#messages: +# $(XGETTEXT) *.cpp *.h -o $(podir)/kpager.pot |