The project is application(.pro) with a static library(.pro), so I am going to use TEMPLATE = SUBDIRS
to manage it.
my workspace.pro
TEMPLATE = SUBDIRS
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
SUBDIRS += \
MY_LIB \
MY_APP1
MY_LIB.file=/Users/username/MYLIB/mylib.pro
MY_APP1.file=/Users/username/MYAPP/App1/App1.pro
The workspace.pro file is in /Users/username/MYAPP/
directory.
When I tried to build it, QtCreator gave error WARNING: Unable to generate output for: /Users/username/MYAPP/build-workspace_Qt_5_1_0_clang_64bit-Debug/Makefile [TEMPLATE SUBDIRS]
May I know how to solve it? and why it happen? Thanks.
It should be TEMPLATE = subdirs
, not SUBDIR.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With