문제

I have a .pro file that looks like this:

BASEDIR = ../../..
CLEBS *= buildplugin apextools apexdata apexmain
TARGET = maintest
TEMPLATE = app
include($$BASEDIR/clebs.pri)

CONFIG *= qtestlib

QT *= testlib gui

SOURCES *= \
apexmaintest.cpp \

HEADERS *= \
apexmaintest.h \

But, the makefile it produces has the following targets:

QMAKE_TARGET  = maintest
DESTDIR       = ../../../bin/debug/
TARGET        = libmaintest.so
TARGETD       = libmaintest.so

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.

도움이 되었습니까?

해결책

Solved. CLEBS *= buildplugin was forcing the library generation.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top