Debian Codegraph @

external/bdwgc/tests/CMakeLists.txt

raw
1 #
2 # Copyright (c) 1994 by Xerox Corporation. All rights reserved.
3 # Copyright (c) 1996 by Silicon Graphics. All rights reserved.
4 # Copyright (c) 1998 by Fergus Henderson. All rights reserved.
5 # Copyright (c) 2000-2010 by Hewlett-Packard Company. All rights reserved.
6 ##
7 # THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
8 # OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
9 ##
10 # Permission is hereby granted to use or copy this program
11 # for any purpose, provided the above notices are retained on all copies.
12 # Permission to modify the code and to distribute modified code is granted,
13 # provided the above notices are retained, and a notice that the code was
14 # modified is included with the above copyright notice.
15 ##
16
17 ADD_DEFINITIONS(-DGC_NOT_DLL)
18
19 # Compile some tests as C++ to test extern "C" in header files.
20 SET_SOURCE_FILES_PROPERTIES(
21 leak_test.c
22 test.c
23 PROPERTIES LANGUAGE CXX)
24
25 ADD_EXECUTABLE(gctest WIN32 test.c)
26 TARGET_LINK_LIBRARIES(gctest gc-lib)
27 ADD_TEST(NAME gctest COMMAND gctest)
28
29 ADD_EXECUTABLE(hugetest huge_test.c)
30 TARGET_LINK_LIBRARIES(hugetest gc-lib)
31 ADD_TEST(NAME hugetest COMMAND hugetest)
32
33 ADD_EXECUTABLE(leaktest leak_test.c)
34 TARGET_LINK_LIBRARIES(leaktest gc-lib)
35 ADD_TEST(NAME leaktest COMMAND leaktest)
36
37 ADD_EXECUTABLE(middletest middle.c)
38 TARGET_LINK_LIBRARIES(middletest gc-lib)
39 ADD_TEST(NAME middletest COMMAND middletest)
40
41 ADD_EXECUTABLE(realloc_test realloc_test.c)
42 TARGET_LINK_LIBRARIES(realloc_test gc-lib)
43 ADD_TEST(NAME realloc_test COMMAND realloc_test)
44
45 ADD_EXECUTABLE(smashtest smash_test.c)
46 TARGET_LINK_LIBRARIES(smashtest gc-lib)
47 ADD_TEST(NAME smashtest COMMAND smashtest)