Important: Please read the Qt Code of Conduct -

Qmake incorrect target generation

  • I have a .pro file that looks like this:
    @BASEDIR = ../../..
    CLEBS *= buildplugin apextools apexdata apexmain
    TARGET = maintest
    TEMPLATE = app

    CONFIG *= qtestlib

    QT *= testlib gui

    SOURCES *=
    apexmaintest.cpp \

    HEADERS *=

    But, the makefile it produces has the following targets:

    @QMAKE_TARGET = maintest
    DESTDIR = ../../../bin/debug/
    TARGET =

    Accordingly gcc produces a library. However I want an executable to be produced as specified in the .pro file.

    I dont understand why this awkward thing is happening? Any pointers are appreciated.

    Thank you

    P.S. this is the .pro file for a unit test using qtestlib framework.

Log in to reply