I'm writting somthing that runs on windows/mac osx/linux.
If got one set of source filles that is dependent on the platform ho do i best include them?
Qt Code:
  1. win32 {
  2. #LIBS += ./WinMM.Lib
  3. HEADERS += ./windows/midiIO.h
  4. SOURCES += ./windows/midiIO.cpp
  5. message(Including Windows specifique headers and sources...)
  6. }
  7. unix {
  8. HEADERS += ./linux/midiIO.h
  9. SOURCES += ./linux/midiIO.cpp
  10. message(Including Linux specifique headers and sources...)
  11. }
  12. macx {
  13. HEADERS += ./macosx/midiIO.h
  14. SOURCES += ./macosx/midiIO.cpp
  15. message(Including Mac OS X specifique headers and sources...)
  16. }
To copy to clipboard, switch view to plain text mode 
If I put it like this in their own sub dir. it complains that it cant find #include "midiIO.h" when compiling so I have to include with the path to the sub dir. #include "windows/midiIO.h" so I have to change the include on every platform....?????

I'm a bit lost....
....any advise???