[Lldb-commits] [PATCH] Add gtest unit tests to the CMake build.

Tamas Berghammer tberghammer at google.com
Fri Mar 13 03:31:22 PDT 2015


================
Comment at: gtest/CMakeLists.txt:13-19
@@ +12,9 @@
+
+# add_lldb_unittest(test_dirname file1.cpp file2.cpp)
+#
+# Will compile the list of files together and link against the liblldb
+function(add_lldb_unittest test_name)
+  add_unittest(LLDBUnitTests ${test_name} ${ARGN})
+  target_link_libraries(${test_name} liblldb)
+endfunction()
+
----------------
AFAIK the unit tests don't have to be linked together with liblldb. They contain some mock implementation for all dependency from liblldb so I wouldn't be surprised on some linker error because of duplicate definition.

http://reviews.llvm.org/D8305

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the lldb-commits mailing list