CMake - Undefined Reference
问题 I am trying to include gtest to my project. The problem is that I get a undefined reference error in the GTest. I am trying to test the Node class in Gtest. Inside the constructor of the Node I am using the Class Logger. Although I have added the library logger to the gtest-target I still the undefined reference error regarding to the Logger.... My guess CMake does no look for nested classes that are used inside Node. only Node itself. Temperoy fix If I use the Logger in the gtest-node.cpp it