Skip to content

Commit

Permalink
Fixing windows compilation for test VS/MinGW
Browse files Browse the repository at this point in the history
  • Loading branch information
theshadowx committed Jun 3, 2016
1 parent e731eb5 commit 73c671b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 31 deletions.
9 changes: 5 additions & 4 deletions src/Notes.pro
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ SOURCES += \
notemodel.cpp \
noteview.cpp \
singleinstance.cpp \
../3rdParty/qxt/qxtglobalshortcut.cpp \
../3rdParty/qxt/qxtglobal.cpp
../3rdParty/qxt/qxtglobal.cpp \
../3rdParty/qxt/qxtglobalshortcut.cpp

HEADERS += \
mainwindow.h \
Expand All @@ -31,9 +31,9 @@ HEADERS += \
notemodel.h \
noteview.h \
singleinstance.h \
../3rdParty/qxt/qxtglobalshortcut_p.h \
../3rdParty/qxt/qxtglobal.h \
../3rdParty/qxt/qxtglobalshortcut.h \
../3rdParty/qxt/qxtglobal.h
../3rdParty/qxt/qxtglobalshortcut_p.h

FORMS += mainwindow.ui

Expand Down Expand Up @@ -67,6 +67,7 @@ macx{

win32 {
SOURCES += ../3rdParty/qxt/qxtglobalshortcut_win.cpp
LIBS+= -luser32
DESTDIR = ../bin
RC_FILE = images\notes.rc
DEFINES += QXT_STATIC
Expand Down
29 changes: 2 additions & 27 deletions tests/tests.pro
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,10 @@ CONFIG -= app_bundle
TEMPLATE = app

unix:!mac{
LIBS += \
../src/OBJ/qxtglobalshortcut_x11.o \
-lX11
LIBS += -lX11
}

macx{
LIBS += \
../src/OBJ/qxtglobalshortcut_mac.o
}

win32{
LIBS += \
../src/OBJ/qxtglobalshortcut_win.o
}

LIBS += ../src/OBJ/qxtglobal.o \
../src/OBJ/qxtglobalshortcut.o \
../src/OBJ/moc_qxtglobalshortcut.o \
../src/OBJ/moc_singleinstance.o \
../src/OBJ/singleinstance.o \
../src/OBJ/moc_notedata.o \
../src/OBJ/notedata.o \
../src/OBJ/moc_noteview.o \
../src/OBJ/noteview.o \
../src/OBJ/notemodel.o \
../src/OBJ/moc_notewidgetdelegate.o \
../src/OBJ/notewidgetdelegate.o \
../src/OBJ/mainwindow.o \
../src/OBJ/moc_mainwindow.o
DEPENDPATH += ../src/OBJ

HEADERS += \
tst_mainwindow.h \
Expand Down

0 comments on commit 73c671b

Please sign in to comment.