I'm trying to use google's RE2 regex library, but I can't find any documentation about how to link to it. The documentation just explains how to install re2, but there isn't any CMAKE example. Currently when I'm trying to compile I get
main.cpp:(.text.ZN3re23RE29FullMatchIJEEEbRKNS_11StringPieceERKS0_DpOT[ZN3re23RE29FullMatchIJEEEbRKNS_11StringPieceERKS0_DpOT]+0x32): undefined reference to `re2::RE2::FullMatchN(re2::StringPiece const&, re2::RE2 const&, re2::RE2::Arg const* const*, int)' clang: error: linker command failed with exit code 1 (use -v to see invocation)