I'm trying to use bazel's cmake from rules_foreign_cc to build a library called fcl. That package has, in it's CMakeLists.txt, a find_package(ccd QUIET)
statement. It wants to find the ccd
(or libccd
) package. I build that package as well, but just using cc_library. How can I get the find_package
statement to find the package that I build?
So
cc_library(
name = "libccd",
visibility = ["//visibility:public"],
include_prefix = "libccd/src",
hdrs = [stuff],
srcs = [stuff],
}
cmake(
name = "fcl",
cache_entries = {
?maybe this?
},
env_vars = {
?maybe this?
},
lib_source = "@fcl//:all",
deps = [
":libccd",
],
)