Modify the existing pro file, add the following few words:
+ = INCLUDEPATH / Home / Ubuntu / Camera / Camera /
LIBS + = -L / Home / Ubuntu / Camera / Camera -ltest
INCLUDEPATH adds a directory of the project in order to find the header file, and add LIBS is a shared library file, -L add directory, -l specify the shared library name.