TEMPLATE = lib CONFIG += c++11 CONFIG += qt #CONFIG += staticlib TARGET = CUIProperty QT += core widgets gui DEFINES += CUIProperty_API unix:!mac{ QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN/\'" } include(./CUIProperty.pri) win32{ INCLUDEPATH += ./ \ ../ \ ../../ \ Release:DESTDIR = ../../output/bin Release:MOC_DIR = ../../generate/CUIProperty/release/moc Release:RCC_DIR = ../../generate/CUIProperty/release/rcc Release:UI_DIR = ../../generate/CUIProperty/release/qui Release:OBJECTS_DIR = ../../generate/CUIProperty/release/obj Release:LIBS += \ -L../../output/bin \ -lCFDStructDataManager Debug:CONFIG += console Debug:DESTDIR = ../../output/bin_d Debug:MOC_DIR = ../../generate/CUIProperty/debug/moc Debug:RCC_DIR = ../../generate/CUIProperty/debug/rcc Debug:UI_DIR = ../../generate/CUIProperty/debug/qui Debug:OBJECTS_DIR = ../../generate/CUIProperty/debug/obj Debug:LIBS += \ -L../../output/bin_d \ -lCFDStructDataManager message("Windows CUIProperty generated") } unix{ INCLUDEPATH += ./ \ ../ \ ../../ \ CONFIG += console CONFIG += plugin DESTDIR = ../../output/bin MOC_DIR = ../../generate/CUIProperty/release/moc UI_DIR = ../../generate/CUIProperty/release/qui RCC_DIR = ../../generate/CUIProperty/release/rcc OBJECTS_DIR = ../../generate/CUIProperty/release/obj LIBS += \ -L../../output/bin \ -lCFDStructDataManager message("Linux CUIProperty generated") }