Skip to content

Commit

Permalink
解决qtcreator下面的编译问题
Browse files Browse the repository at this point in the history
  • Loading branch information
爬山虎 committed Oct 28, 2022
1 parent 9d4c414 commit 816b86c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
14 changes: 7 additions & 7 deletions RealCompare.pro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ HEADERS += *.h \
cceditor/filemanager.h


SOURCES += *.cpp *.cc \
SOURCES += *.cpp \
cceditor/ccnotepad.cpp \
cceditor/filemanager.cpp

Expand All @@ -32,21 +32,20 @@ INCLUDEPATH += cceditor
DEFINES += QSCINTILLA_DLL

TRANSLATIONS += realcompare_zh.ts

win32 {
if(contains(QMAKE_HOST.arch, x86_64)){
CONFIG(Debug, Debug|Release){
CONFIG(debug, debug|release) {
DESTDIR = x64/Debug
LIBS += -Lx64/Debug
LIBS += -L$$PWDx64/Debug
LIBS += -lqmyedit_qt5d
}else{
DESTDIR = x64/Release
LIBS += -Lx64/Release
LIBS += -L$$PWD/x64/Release
LIBS += -lqmyedit_qt5
QMAKE_CXXFLAGS += /openmp
}

}
}
unix{
if(CONFIG(debug, debug|release)){
LIBS += -L/home/yzw/build/CCNotePad/lib -lprotobuf
Expand Down Expand Up @@ -82,3 +81,4 @@ DEPENDPATH += $$PWD/x64/Release

unix:!macx: PRE_TARGETDEPS += $$PWD/x64/Release/libqmyedit_qt5.a
}

3 changes: 1 addition & 2 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "netregister.h"
#include "ccnotepad.h"
#include "ccnotepad.h"
#include "jsondeploy.h"
#include "styleset.h"

Expand Down

0 comments on commit 816b86c

Please sign in to comment.