summaryrefslogtreecommitdiff
path: root/cord
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2019-06-15 15:30:32 +0300
committerIvan Maidanski <ivmai@mail.ru>2019-06-15 15:30:32 +0300
commit9e5a4952dcba990ad8d7c8d30ae2eb2979d1e33e (patch)
treebc675dd1cda3efb2fcd96d69fd74a3aeb28ed72c /cord
parent227a6979555a4f2fbae81c14e9c6e3b0ef03fca8 (diff)
downloadbdwgc-9e5a4952dcba990ad8d7c8d30ae2eb2979d1e33e.tar.gz
Move test executable files produced by CMake to the base folder
Issue #281 (bdwgc). This is done by moving the content of cord/CMakeLists.txt and tests/CMakeLists.txt files to the base CMakeLists.txt. * CMakeLists.txt [build_tests && build_cord]: Move content from cord/CMakeLists.txt. * CMakeLists.txt [build_tests && build_cord] (cordtest, de): Add "cord/" to .c files in add_executable. * CMakeLists.txt [build_tests]: Move content from tests/CMakeLists.txt. * CMakeLists.txt [build_tests] (gctest, hugetest, leaktest, middletest, realloc_test, smashtest, tracetest, test_cpp, disclaim_bench, disclaim_test, disclaim_weakmap_test, disclaim_weakmap_test): Add "tests/" to .c and .cc files in add_executable. * Makefile.am (EXTRA_DIST): Remove cord/CMakeLists.txt, tests/CMakeLists.txt. * doc/README.cmake: Update info about CMakeLists.txt files (there is just one file now). * cord/CMakeLists.txt: Remove file. * tests/CMakeLists.txt: Likewise.
Diffstat (limited to 'cord')
-rw-r--r--cord/CMakeLists.txt30
1 files changed, 0 insertions, 30 deletions
diff --git a/cord/CMakeLists.txt b/cord/CMakeLists.txt
deleted file mode 100644
index 50290c97..00000000
--- a/cord/CMakeLists.txt
+++ /dev/null
@@ -1,30 +0,0 @@
-#
-# 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()