~ubuntu-branches/ubuntu/vivid/freerdp/vivid

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
# FreeRDP: A Remote Desktop Protocol Implementation
# cunit cmake build script
#
# Copyright 2011 O.S. Systems Software Ltda.
# Copyright 2011 Otavio Salvador <otavio@ossystems.com.br>
# Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

include_directories(${CUNIT_INCLUDE_DIRS})
include_directories(${CMAKE_SOURCE_DIR}) # for some internal tests

include_directories(../libfreerdp/core)
include_directories(../libfreerdp/gdi)
include_directories(../libfreerdp/cache)
include_directories(../libfreerdp/codec)

add_executable(test_freerdp
	test_gcc.c
	test_gcc.h
	test_mcs.c
	test_mcs.h
	test_color.c
	test_color.h
	test_bitmap.c
	test_bitmap.h
	test_gdi.c
	test_gdi.h
	test_orders.c
	test_orders.h
	test_pcap.c
	test_pcap.h
	test_ntlm.c
	test_ntlm.h
	test_license.c
	test_license.h
	test_cliprdr.c
	test_cliprdr.h
	test_drdynvc.c
	test_drdynvc.h
	test_rfx.c
	test_rfx.h
	test_nsc.c
	test_nsc.h
	test_sspi.c
	test_sspi.h
	test_freerdp.c
	test_freerdp.h
	test_rail.c
	test_rail.h
	test_mppc.c
	test_mppc.h
	test_mppc_enc.c
	test_mppc_enc.h)

target_link_libraries(test_freerdp ${CUNIT_LIBRARIES})

target_link_libraries(test_freerdp freerdp-core)
target_link_libraries(test_freerdp freerdp-gdi)
target_link_libraries(test_freerdp freerdp-utils)
target_link_libraries(test_freerdp freerdp-codec)
target_link_libraries(test_freerdp freerdp-crypto)

target_link_libraries(test_freerdp winpr-sspi)

add_test(CUnitTests ${CMAKE_SOURCE_DIR}/cunit/test_freerdp)