diff --git a/qmac/qmac.pro b/qmac/qmac.pro --- a/qmac/qmac.pro +++ b/qmac/qmac.pro @@ -1,24 +1,24 @@ QT -= gui TEMPLATE = lib DEFINES += QMAC_LIBRARY - CONFIG += c++11 +win32:CONFIG(debug, debug|release): TARGET = $${TARGET}d # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 exists(/etc/astra_version) { SOURCES += mac.cpp LIBS += -lparsec-mac } else { SOURCES += nomac.cpp } HEADERS += \ qmac.h target.path = /lib # lib/dll install location headers.path = /include # headers install location headers.files = $$HEADERS diff --git a/tests/tests.pro b/tests/tests.pro --- a/tests/tests.pro +++ b/tests/tests.pro @@ -1,33 +1,31 @@ TEMPLATE = app TARGET = qmactest QT += testlib QT -= gui CONFIG += qt console warn_on depend_includepath testcase no_testcase_installs CONFIG -= app_bundle # The following define makes your compiler emit warnings if you use # any feature of Qt which as been marked deprecated (the exact warnings # depend on your compiler). Please consult the documentation of the # deprecated API in order to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS isEmpty(INCLUDEPATH): SITE_INCLUDEPATH = $$(HOME)/src/include else: SITE_INCLUDEPATH = $$INCLUDEPATH isEmpty(LIBS): SITE_LIBS = -L$$(HOME)/src/lib else: SITE_LIBS = $$LIBS INCLUDEPATH = $$PWD/../qmac $$SITE_INCLUDEPATH DEPENDPATH = $$PWD/../qmac -win32:CONFIG(release, debug|release): LIBS = -L$$OUT_PWD/../qmac/release -else:win32:CONFIG(debug, debug|release): LIBS = -L$$OUT_PWD/../qmac/debug +win32:CONFIG(release, debug|release): LIBS = -L$$OUT_PWD/../qmac/release -lqmac +else:win32:CONFIG(debug, debug|release): LIBS = -L$$OUT_PWD/../qmac/debug -lqmacd else:unix: LIBS = -L$$OUT_PWD/../qmac -LIBS += -lqmac - SOURCES += \ main.cpp HEADERS += \ main.h