[Qt-creator] Build target options
Paulo Jnkml
paulo.jnkml at gmail.com
Mon Feb 9 09:34:25 CET 2009
Hi,
still in the line of the Debug;TARGET, Release:TARGET, can I create:
Debug {
SOURCES += ../src/main.cpp
TEMPLATE = app
DESTDIR = ../bin
TARGET = myApp_d
LIBS += -L ../lib -lmyLib_d
}
Release {
SOURCES += ../src/main.cpp
TEMPLATE = app
DESTDIR = ../bin
TARGET = myApp_r
LIBS += -L ../lib -lmyLib_r
}
libDebug {
TEMPLATE = lib
CONFIG += staticlib
DESTDIR = ../lib
TARGET = myLib_d
}
libRelease {
TEMPLATE = lib
CONFIG += staticlib
DESTDIR = ../lib
TARGET = myLib_r
}
If this is possible, how can I select the lib* targets?
I tried to create build configurations for them, but it didn't work.
It always tries to build using the defaults. That is app with name equal
to the project name.
My guess is that it ignores all my { options } and tries to use the
defaults.
Paulo
More information about the Qt-creator-old
mailing list