From: Ivan Maidanski Date: Mon, 17 Jun 2019 07:51:11 +0000 (+0300) Subject: Enable test_cpp in CMake script X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78c458958ffe92430969a5151dff8342e36fdebf;p=gc Enable test_cpp in CMake script Issue #281 (bdwgc). * CMakeLists.txt [enable_cplusplus] (test_cpp): Uncomment add_executable, target_link_libraries, add_test; remove TODO. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d272b24d..d32dfedf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -347,9 +347,9 @@ if (build_tests) endif() if (enable_cplusplus) - # TODO add_executable(test_cpp tests/test_cpp.cc) - # target_link_libraries(test_cpp PRIVATE gc) - # add_test(NAME test_cpp COMMAND test_cpp) + add_executable(test_cpp tests/test_cpp.cc) + target_link_libraries(test_cpp PRIVATE gc) + add_test(NAME test_cpp COMMAND test_cpp) endif() if (enable_disclaim)