- Fix long standing bug where the .cc dependencies were incorrectly
[platform/upstream/libzypp.git] / tests / media / CMakeLists.txt
1
2 ########### next target ###############
3
4 SET(media2_SRCS
5 media2.cc
6 mymediaverifier.h
7 )
8
9 KDE3_AUTOMOC(${media2_SRCS})
10
11 KDE3_ADD_EXECUTABLE(media2 ${media2_SRCS})
12
13 TARGET_LINK_LIBRARIES(media2  ${QT_AND_KDECORE_LIBS} )
14
15
16 ########### next target ###############
17
18 SET(media3_SRCS
19 media3.cc
20 mymediaverifier.h
21 )
22
23 KDE3_AUTOMOC(${media3_SRCS})
24
25 KDE3_ADD_EXECUTABLE(media3 ${media3_SRCS})
26
27 TARGET_LINK_LIBRARIES(media3  ${QT_AND_KDECORE_LIBS} )
28
29
30 ########### next target ###############
31
32 SET(media4_SRCS
33 media4.cc
34 mymediaverifier.h
35 )
36
37 KDE3_AUTOMOC(${media4_SRCS})
38
39 KDE3_ADD_EXECUTABLE(media4 ${media4_SRCS})
40
41 TARGET_LINK_LIBRARIES(media4  ${QT_AND_KDECORE_LIBS} )
42
43
44 ########### next target ###############
45
46 SET(fileexists_SRCS
47 file_exists_test.cc
48 mymediaverifier.h
49 )
50
51 KDE3_AUTOMOC(${fileexists_SRCS})
52
53 KDE3_ADD_EXECUTABLE(fileexists ${fileexists_SRCS})
54
55 TARGET_LINK_LIBRARIES(fileexists  ${QT_AND_KDECORE_LIBS} boost_unit_test_framework )
56
57
58 ########### next target ###############
59
60 SET(throw_if_not_exists_SRCS
61 throw_if_not_exists.cc
62 mymediaverifier.h
63 )
64
65 KDE3_AUTOMOC(${throw_if_not_exists_SRCS})
66
67 KDE3_ADD_EXECUTABLE(throw_if_not_exists ${throw_if_not_exists_SRCS})
68
69 TARGET_LINK_LIBRARIES(throw_if_not_exists  ${QT_AND_KDECORE_LIBS} boost_unit_test_framework )
70
71
72 ########### next target ###############
73
74 SET(media1_SRCS
75 media1.cc
76 mymediaverifier.h
77 )
78
79 KDE3_AUTOMOC(${media1_SRCS})
80
81 IF(KDE3_BUILD_TESTS)
82
83 KDE3_ADD_EXECUTABLE(media1 ${media1_SRCS})
84
85 TARGET_LINK_LIBRARIES(media1  ${QT_AND_KDECORE_LIBS} boost_unit_test_framework )
86
87 ENDIF(KDE3_BUILD_TESTS)
88
89 ########### next target ###############
90
91 SET(fileexists_SRCS
92 dummy.cpp
93 )
94
95 KDE3_AUTOMOC(${fileexists_SRCS})
96
97 FILE(WRITE dummy.cpp "//autogenerated file by cmake\n")
98 IF(KDE3_BUILD_TESTS)
99
100 KDE3_ADD_EXECUTABLE(fileexists ${fileexists_SRCS})
101
102 TARGET_LINK_LIBRARIES(fileexists  ${QT_AND_KDECORE_LIBS} )
103
104 ENDIF(KDE3_BUILD_TESTS)
105
106 ########### next target ###############
107
108 SET(throw_if_not_exists_SRCS
109 dummy.cpp
110 )
111
112 KDE3_AUTOMOC(${throw_if_not_exists_SRCS})
113
114 FILE(WRITE dummy.cpp "//autogenerated file by cmake\n")
115 IF(KDE3_BUILD_TESTS)
116
117 KDE3_ADD_EXECUTABLE(throw_if_not_exists ${throw_if_not_exists_SRCS})
118
119 TARGET_LINK_LIBRARIES(throw_if_not_exists  ${QT_AND_KDECORE_LIBS} )
120
121 ENDIF(KDE3_BUILD_TESTS)
122
123 ########### install files ###############
124
125
126
127
128 #original Makefile.am contents follow:
129
130 ### Process this file with automake to produce Makefile.in
131 ### ##################################################
132 #
133 ## Do NOT list devel.* in subdirs. It's developers playgound and
134 ## must not prevent anything from building.
135 #SUBDIRS =
136 #
137 ### ##################################################
138 #
139 #
140 #TESTS = media1 fileexists
141 #
142 #noinst_PROGRAMS = media2 media3 media4 fileexists throw_if_not_exists
143 #
144 #check_PROGRAMS = media1 fileexists throw_if_not_exists
145 #
146 #
147 ### ##################################################
148 #
149 #LDADD =        $(top_srcdir)/zypp/lib@PACKAGE@.la 
150 #
151 ### ##################################################
152 #
153 #media1_SOURCES = media1.cc mymediaverifier.h
154 #media1_LDADD = $(LDADD) -lboost_unit_test_framework
155 #
156 #fileexists_SOURCES = file_exists_test.cc mymediaverifier.h
157 #fileexists_LDADD = $(LDADD) -lboost_unit_test_framework
158 #
159 #media2_SOURCES = media2.cc mymediaverifier.h
160 #media2_LDADD = $(LDADD)
161 #
162 #media3_SOURCES = media3.cc mymediaverifier.h
163 #media3_LDADD = $(LDADD)
164 #
165 #media4_SOURCES = media4.cc mymediaverifier.h
166 #media4_LDADD = $(LDADD)
167 #
168 #throw_if_not_exists_SOURCES = throw_if_not_exists.cc mymediaverifier.h
169 #throw_if_not_exists_LDADD = $(LDADD) -lboost_unit_test_framework
170 #
171 ### ##################################################
172 #
173 #.PHONY:        always
174 #
175 #$(noinst_PROGRAMS):    $(top_srcdir)/zypp/lib@PACKAGE@.la
176 #
177 ##$(top_srcdir)/zypp/lib@PACKAGE@.la:     always
178 ##      $(MAKE) -C $(top_srcdir)/zypp
179 #
180 ### ##################################################