How can i use strip within a Qt project


#1

What is the correct way to automatically call strip in qt projects in cross-compile mode or not?


#2

You can use QMAKE_POST_LINK target within .pro file of your project like that:

CONFIG += console
TARGET  = my_prog

SOURCES += \
    main.cpp

QMAKE_POST_LINK=$(STRIP) $(TARGET)