For googleTest, just add library and include path, add -I${GTEST_DIR}/include -L${GTEST_DIR}/lib/.libs/libgtest.a
when doing gcc compiling.
Or if you are using automake to generate of Makefile, add two lines to Makefile.am
which can be used by automake also works.
autotest_LDADD=@LIBS@ ${GTEST_DIR}/lib/.libs/libgtest.a
autotest_CXXFLAGS=@CXXFLAGS@ -I${GTEST_DIR}/include
The project name is autotest, and ${GTEST_DIR} should be a environment variable before you compile.
Never used bullseye, but it should be close to this.