diff options
Diffstat (limited to 'samples/kcalc/knumber')
-rw-r--r-- | samples/kcalc/knumber/CMakeLists.txt | 45 | ||||
-rw-r--r-- | samples/kcalc/knumber/tests/CMakeLists.txt | 59 |
2 files changed, 104 insertions, 0 deletions
diff --git a/samples/kcalc/knumber/CMakeLists.txt b/samples/kcalc/knumber/CMakeLists.txt new file mode 100644 index 00000000..77042474 --- /dev/null +++ b/samples/kcalc/knumber/CMakeLists.txt @@ -0,0 +1,45 @@ +ADD_SUBDIRECTORY( tests ) + +INCLUDE_DIRECTORIES( ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) + +INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/.. ) # added manually + +ADD_DEFINITIONS(-D_GNU_SOURCE -D_ISOC99_SOURCE ) # added manually + +########### next target ############### + +SET(knumber_STAT_SRCS +knumber.cpp +knumber_priv.cpp +) + +KDE3_AUTOMOC(${knumber_STAT_SRCS}) + +ADD_LIBRARY(knumber STATIC ${knumber_STAT_SRCS}) + + +########### install files ############### + + +KDE3_PLACEHOLDER() + + + +#original Makefile.am contents follow: + +#AM_CPPFLAGS=-D_GNU_SOURCE -D_ISOC99_SOURCE $(all_includes) +# +#SUBDIRS = tests +# +#bin_PROGRAMS = +#lib_LTLIBRARIES = +#noinst_LTLIBRARIES = libknumber.la +# +#libknumber_la_SOURCES = knumber.cpp knumber_priv.cpp +#libknumber_la_LIBADD = $(LIBGMP) -lm +# +#METASOURCES = AUTO +# +#noinst_HEADERS = knumber.h knumber_priv.h +# +#include ../../admin/Doxyfile.am diff --git a/samples/kcalc/knumber/tests/CMakeLists.txt b/samples/kcalc/knumber/tests/CMakeLists.txt new file mode 100644 index 00000000..c10282a3 --- /dev/null +++ b/samples/kcalc/knumber/tests/CMakeLists.txt @@ -0,0 +1,59 @@ +INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/kcalc/knumber ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) + + +########### next target ############### + +SET(knumbertest_SRCS +knumbertest.cpp +) + +KDE3_AUTOMOC(${knumbertest_SRCS}) + +IF(KDE3_BUILD_TESTS) +KDE3_ADD_EXECUTABLE(knumbertest ${knumbertest_SRCS}) + +TARGET_LINK_LIBRARIES(knumbertest ${QT_AND_KDECORE_LIBS} ) + +ENDIF(KDE3_BUILD_TESTS) + +########### install files ############### + + +KDE3_PLACEHOLDER() + + + +#original Makefile.am contents follow: + +## This file is part of the KDE libraries +## Copyright (C) 1996-1997 Matthias Kalle Dalheimer (kalle@kde.org) +## (C) 1997-1998 Stephan Kulow (coolo@kde.org) +# +## This library is free software; you can redistribute it and/or +## modify it under the terms of the GNU Library General Public +## License as published by the Free Software Foundation; either +## version 2 of the License, or (at your option) any later version. +# +## This library is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## Library General Public License for more details. +# +## You should have received a copy of the GNU Library General Public License +## along with this library; see the file COPYING.LIB. If not, write to +## the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +## Boston, MA 02111-1307, USA. +# +#INCLUDES = -I$(top_srcdir)/kcalc/knumber $(all_includes) +# +#check_PROGRAMS = knumbertest +# +#TESTS = knumbertest +# +#noinst_HEADERS = knumbertest.h +# +#METASOURCES = AUTO +# +#knumbertest_SOURCES = knumbertest.cpp +#knumbertest_LDADD = ../libknumber.la $(LIB_QT) $(LIBGMP) +#knumbertest_LDFLAGS = $(all_libraries) $(KDE_RPATH) |