~ubuntu-branches/ubuntu/precise/libical/precise

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_SOURCE_DIR}/src
  ${CMAKE_BINARY_DIR}/src
)

set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})

set(TEST_DATADIR "\\\"${CMAKE_SOURCE_DIR}/test-data\\\"")
add_definitions(-DTEST_DATADIR=${TEST_DATADIR})

########### next target ###############

set(copycluster_SRCS copycluster.c)

add_executable(copycluster ${copycluster_SRCS})

target_link_libraries(copycluster ical icalss)


########### next target ###############

set(regression_SRCS
    regression.c
    regression.h
    regression-component.c
    regression-classify.c
    regression-utils.c
    regression-recur.c
    regression-storage.c
)

add_executable(regression ${regression_SRCS})

target_link_libraries(regression ical icalss icalvcal)

add_test(regression regression)

########### next target ###############

set(parser_SRCS icaltestparser.c)

add_executable(parser ${parser_SRCS})

target_link_libraries(parser ical icalss)


########### next target ###############

if(NOT WIN32)
  set(STOW_SRCS stow.c)

  add_executable(stow ${STOW_SRCS})

  target_link_libraries(stow ical icalss)
endif(NOT WIN32)


########### next target ###############

set(recur_SRCS recur.c)

add_executable(recur ${recur_SRCS})

target_link_libraries(recur ical icalss)


########### next target ###############

if(HAVE_UNISTD_H)
set(testmime_SRCS testmime.c)

add_executable(testmime ${testmime_SRCS})

target_link_libraries(testmime ical icalss)
endif(HAVE_UNISTD_H)


########### next target ###############

set(testvcal_SRCS testvcal.c)

add_executable(testvcal ${testvcal_SRCS})

target_link_libraries(testvcal ical icalss icalvcal)


########### next target ###############

set(process_SRCS process.c)

add_executable(process ${process_SRCS})

target_link_libraries(process ical icalss)


########### next target ###############

if(NOT WIN32)
  set(timezones_SRCS timezones.c)

  add_executable(timezones ${timezones_SRCS})

  target_link_libraries(timezones ical icalss)

  add_test(timezones timezones)
endif(NOT WIN32)

########### install files ###############


#original Makefile.am contents follow:

# regression_SOURCES = 		\
# 	regression.c		\
# 	regression.h		\
# 	regression-component.c	\
# 	regression-classify.c	\
# 	regression-utils.c	\
# 	regression-recur.c	\
# 	regression-storage.c

# if WITH_CXX_BINDINGS
# cxx_inc=-DWITH_CXX_BINDINGS
# cxx_libs=../libical/libical_cxx.la
# regression_SOURCES +=          \
# regression-cxx.cpp
# else
# cxx_inc=
# cxx_libs=
# endif

# if WITH_BDB4
# bdb4_inc=-DWITH_BDB -I@BDB_DIR@/include
# bdb4_libs=@BDB_DIR_LIB@/@BDB_LIB@
# else
# bdb4_inc=
# bdb4_libs=
# endif

# if OS_WIN32
# else
# STOW = stow
# endif

# check_PROGRAMS = copycluster regression parser $(STOW) recur testmime testvcal process timezones

# LDADD =  ../libicalss/libicalss.la ../libicalvcal/libicalvcal.la $(cxx_libs) ../libical/libical.la $(bdb4_libs)

# LIBS = @PTHREAD_LIBS@

# INCLUDES = 						\
# 	-I$(top_srcdir)					\
# 	-I$(top_srcdir)/src				\
# 	-I$(top_builddir)/src				\
# 	-I$(top_srcdir)/src/libical			\
# 	-I$(top_builddir)/src/libical			\
# 	-I$(top_builddir)/src/libicalss			\
# 	-DTEST_DATADIR=\"$(top_srcdir)/test-data\"	\
# 	$(cxx_inc) $(bdb4_inc)

# TESTS=regression timezones

# parser_SOURCES = icaltestparser.c

# # clusterin.vcd should be a real file with data but it doesn't seem to be in cvs
# CLEANFILES = 				\
# 	test_fileset.ics 		\
# 	test_fileset_locktest.ics	\
# 	filesetout.ics 			\
# 	clusterin.vcd

# clean-local:
# 	rm -rf calendar