I am trying run a program from a qmake .pro file which modifies the final binary. I have already tried system(...) but it does not work. The reason I want this is because by default some properties of the binary prevent debugging and it is inconvenient to do it manually every time. I can do this from simple makefiles.
Here is my .pro file:
TARGET = lprog_server
QT += core \
xml \
network
HEADERS += Networ开发者_StackOverflow中文版k/PlayerJoined.hh \
...
SOURCES += Globals.cc \
...
FORMS +=
RESOURCES +=
QMAKE_LFLAGS += -lboost_random-mt
system(paxctl -pemrxs lprog_server)
It is needed for my homework but the assignment is not to execute something from qmake. It is in fact a server-client software using Qt already more than 2500 lines long.
QMAKE_POST_LINK=paxctl -pemrxs $(TARGET)
精彩评论