]> granicus.if.org Git - gc/commitdiff
Enable test_cpp in CMake script
authorIvan Maidanski <ivmai@mail.ru>
Mon, 17 Jun 2019 07:51:11 +0000 (10:51 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 17 Jun 2019 07:51:11 +0000 (10:51 +0300)
Issue #281 (bdwgc).

* CMakeLists.txt [enable_cplusplus] (test_cpp): Uncomment add_executable,
target_link_libraries, add_test; remove TODO.

CMakeLists.txt

index d272b24dfb9056352c4fdb4841f0fe9b9ceb57fc..d32dfedf8fce6b039001be76bd254790ba72412b 100644 (file)
@@ -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)