问题描述
刚接触 C++,我找不到关于我是否可以将来自 cpp_binary 的头文件包含到 cpp_unittest 的文档。我提到:https://buck.build/rule/cxx_test.html
项目 A:
cpp_binary( <====== Works if I change it to cpp_library
name = "server",srcs = [
"Server.cpp",],headers = [
"Server.h",deps = [
],external_deps = [
],)
项目 B:
cpp_unittest(
name = "test",srcs = ["Test.cpp"],deps = [
ProjectA:server",external_deps = [
("googletest","gmock"),)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)