2012-10-09 07:02:04 +04:00
|
|
|
# FreeRDP: A Remote Desktop Protocol Implementation
|
2011-07-02 21:58:55 +04:00
|
|
|
# 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.
|
2011-07-01 06:12:54 +04:00
|
|
|
|
2011-07-02 22:23:59 +04:00
|
|
|
include_directories(${CUNIT_INCLUDE_DIRS})
|
2011-07-27 03:14:11 +04:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}) # for some internal tests
|
2011-07-02 22:23:59 +04:00
|
|
|
|
2012-09-11 03:27:15 +04:00
|
|
|
include_directories(../libfreerdp/core)
|
|
|
|
include_directories(../libfreerdp/gdi)
|
|
|
|
include_directories(../libfreerdp/cache)
|
|
|
|
include_directories(../libfreerdp/codec)
|
2011-07-01 06:12:54 +04:00
|
|
|
|
|
|
|
add_executable(test_freerdp
|
2011-07-05 03:13:01 +04:00
|
|
|
test_gcc.c
|
|
|
|
test_gcc.h
|
2011-07-07 23:51:23 +04:00
|
|
|
test_mcs.c
|
|
|
|
test_mcs.h
|
2011-07-01 06:12:54 +04:00
|
|
|
test_color.c
|
|
|
|
test_color.h
|
2011-07-10 08:24:09 +04:00
|
|
|
test_bitmap.c
|
|
|
|
test_bitmap.h
|
2012-02-14 06:02:09 +04:00
|
|
|
test_gdi.c
|
|
|
|
test_gdi.h
|
2011-08-04 03:15:37 +04:00
|
|
|
test_orders.c
|
|
|
|
test_orders.h
|
2011-08-27 02:36:35 +04:00
|
|
|
test_pcap.c
|
|
|
|
test_pcap.h
|
2012-03-03 22:02:13 +04:00
|
|
|
test_ntlm.c
|
|
|
|
test_ntlm.h
|
2011-07-13 19:40:19 +04:00
|
|
|
test_license.c
|
|
|
|
test_license.h
|
2011-07-28 09:04:01 +04:00
|
|
|
test_cliprdr.c
|
|
|
|
test_cliprdr.h
|
|
|
|
test_drdynvc.c
|
|
|
|
test_drdynvc.h
|
2012-02-14 06:02:09 +04:00
|
|
|
test_rfx.c
|
|
|
|
test_rfx.h
|
2012-03-06 14:55:54 +04:00
|
|
|
test_nsc.c
|
|
|
|
test_nsc.h
|
2012-02-23 08:41:22 +04:00
|
|
|
test_sspi.c
|
|
|
|
test_sspi.h
|
2011-07-01 06:12:54 +04:00
|
|
|
test_freerdp.c
|
2011-08-21 05:15:30 +04:00
|
|
|
test_freerdp.h
|
|
|
|
test_rail.c
|
2011-09-02 08:20:08 +04:00
|
|
|
test_rail.h
|
2012-03-19 10:02:13 +04:00
|
|
|
test_mppc.c
|
|
|
|
test_mppc.h
|
|
|
|
test_mppc_enc.c
|
|
|
|
test_mppc_enc.h)
|
2011-07-01 06:12:54 +04:00
|
|
|
|
2011-07-02 22:23:59 +04:00
|
|
|
target_link_libraries(test_freerdp ${CUNIT_LIBRARIES})
|
2011-07-01 06:12:54 +04:00
|
|
|
|
2011-07-03 11:54:32 +04:00
|
|
|
target_link_libraries(test_freerdp freerdp-core)
|
2011-07-01 06:12:54 +04:00
|
|
|
target_link_libraries(test_freerdp freerdp-gdi)
|
|
|
|
target_link_libraries(test_freerdp freerdp-utils)
|
2011-10-03 04:52:17 +04:00
|
|
|
target_link_libraries(test_freerdp freerdp-codec)
|
2012-02-18 02:43:00 +04:00
|
|
|
target_link_libraries(test_freerdp freerdp-crypto)
|
2012-05-06 04:45:13 +04:00
|
|
|
|
2014-07-10 02:03:20 +04:00
|
|
|
target_link_libraries(test_freerdp winpr)
|
2011-07-01 06:12:54 +04:00
|
|
|
|
2012-10-01 04:15:42 +04:00
|
|
|
add_test(CUnitTests ${CMAKE_SOURCE_DIR}/cunit/test_freerdp)
|
|
|
|
|