Add tests directory into build

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@592361 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Laurent Montel
2006-10-04 15:12:47 +00:00
parent 0e45e5b3f9
commit 619b1eaf54
3 changed files with 6 additions and 46 deletions

View File

@ -1,32 +1,14 @@
if(BUILD_TESTS)
INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/taglib ${CMAKE_SOURCE_DIR}/taglib/toolkit ${CMAKE_SOURCE_DIR}/taglib/mpeg/id3v2 )
########### next target ###############
SET(toolkit-test_SRCS
dummy.cpp
toolkit-test.cpp
)
FILE(WRITE dummy.cpp "//autogenerated file by cmake\n")
ADD_EXECUTABLE(toolkit-test ${toolkit-test_SRCS})
TARGET_LINK_LIBRARIES(toolkit-test tag )
########### install files ###############
#original Makefile.am contents follow:
#INCLUDES = \
# -I$(top_srcdir)/taglib\
# -I$(top_srcdir)/taglib/toolkit \
# -I$(top_srcdir)/taglib/mpeg/id3v2
#
#LDADD = ../libtag.la
#
#check_PROGRAMS = toolkit-test
#
#toolkit_test_SOURCES = toolkit-test.cpp
endif(BUILD_TESTS)