开发者

How to execute external programs from qmake?

开发者 https://www.devze.com 2022-12-09 13:21 出处:网络
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

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)
0

精彩评论

暂无评论...
验证码 换一张
取 消