Set include path with environment variable value

前端 未结 4 579
独厮守ぢ
独厮守ぢ 2021-02-03 13:43

We are trying to use the MITK library with Qt on Linux.

Unfortunately MITK has no install functionality and it also depends on ITK and VTK. So we end up with header fil

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-03 14:08

    I think there's a cleaner way to do this, but I can't remember. Anyway, you could use the system directive:

    INCLUDEPATH += $$system( echo $MITK_INCLUDE_PATH )
    

    You may also want to add it to depend path:

    DEPENDPATH += $$system( echo $MITK_INCLUDE_PATH )
    

提交回复
热议问题