blob: 50290c97bdfe1885182403de92d6c2e95ccc0651 (
plain)
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
|
#
# Copyright (c) 2000-2010 by Hewlett-Packard Company. All rights reserved.
##
# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
# OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
##
# Permission is hereby granted to use or copy this program
# for any purpose, provided the above notices are retained on all copies.
# Permission to modify the code and to distribute modified code is granted,
# provided the above notices are retained, and a notice that the code was
# modified is included with the above copyright notice.
##
# TODO add_library(cord ...)
if (build_tests)
add_executable(cordtest cordbscs.c cordprnt.c cordxtra.c
tests/cordtest.c)
set_target_properties(cordtest PROPERTIES COMPILE_DEFINITIONS GC_NOT_DLL)
target_link_libraries(cordtest PRIVATE gc)
add_test(NAME cordtest COMMAND cordtest)
if (WIN32)
add_executable(de cordbscs.c cordxtra.c
tests/de.c tests/de_win.c)
set_target_properties(de PROPERTIES WIN32_EXECUTABLE TRUE)
set_target_properties(de PROPERTIES COMPILE_DEFINITIONS GC_NOT_DLL)
target_link_libraries(de PRIVATE gc gdi32)
endif(WIN32)
endif()
|