I have the following qt.pro file:
################################################## ###
TEMPLATE = subdirs
SUBDIRS = qt_shared qt_test
qt_shared.subdir = qtshared
qt_test.subdir = qttest
qt_test.depends = qt_shared
qt_test.target = QtTest
################################################## #####
This file, qt.pro, is in the directory right above qtshared/ and qttest/.
I have qtshared.pro (which generates a static library successfully), and qttest.pro (which generates an app QtTest), in their appropriate directories.
Whenever the dir qtshared/ changes, my generated makefile is smart enough to recompile the library in qtshared , but it is not smart enough to relink the qttest app against this library. Even though none of the source code in qttest changes, I want to relink it against the shared library made in qtshared.
I don't even have to do it this way, I am essentially looking for a way to have QtTest have a dependency on a static library. After a week and a half of research and experimentation, I have had no luck. Any help is appreciated. Thanks.
Bookmarks