Is there a way to it without writting macros? It is still complaining about it can not finding the header files. Adding the path takes out the whole use fullness. Otherwise it's easier to replace manually the platfrom dependent files.
BTW I cant find the part about writting macros in the qmake manual, can you please point me at it, cause google won't...
I dont see the usefullness of telling qmake wich files to add if you have to write macros to include the correct file... Than a macro only would do it (if I could find the maco part in the manual)...
Maybe I'm missing something? I would prefer to do it without macros but how? Anyone?
win32 {
LIBS += WinMM.Lib
HEADERS += ./windows/midiIO.h
SOURCES += ./windows/midiIO.cpp
INCLUDEPATH += ./windows
message(Including Windows specifique headers and sources...)
}
unix {
HEADERS += ./linux/midiIO.h
SOURCES += ./linux/midiIO.cpp
INCLUDEPATH += ./unix
message(Including Linux specifique headers and sources...)
}
macx {
HEADERS += ./macosx/midiIO.h
SOURCES += ./macosx/midiIO.cpp
INCLUDEPATH += ./macosx
message(Including Mac OS X specifique headers and sources...)
}
win32 {
LIBS += WinMM.Lib
HEADERS += ./windows/midiIO.h
SOURCES += ./windows/midiIO.cpp
INCLUDEPATH += ./windows
message(Including Windows specifique headers and sources...)
}
unix {
HEADERS += ./linux/midiIO.h
SOURCES += ./linux/midiIO.cpp
INCLUDEPATH += ./unix
message(Including Linux specifique headers and sources...)
}
macx {
HEADERS += ./macosx/midiIO.h
SOURCES += ./macosx/midiIO.cpp
INCLUDEPATH += ./macosx
message(Including Mac OS X specifique headers and sources...)
}
To copy to clipboard, switch view to plain text mode
adding INCLUDEPATH does the job... All fine now!
Bookmarks