summaryrefslogtreecommitdiff
path: root/cord/CMakeLists.txt
blob: 1fb27e969e1a7533d14d5249662aae105e0bf172 (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
#
# 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 ...)

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 gc-lib)
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 gc-lib)
  target_link_libraries(de gdi32)
endif()