how to add "include" path in QtCreator?
-
Is there a recommended way to add common "include" path ?
In C/C++ common path is usually specified in complier option "/i "...
Qt has many "common " options in make (.pro) file...
ADDENDUM
adding to .proINCLUDE_DIRECTORIES("../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simplebluez/include/simplebluez")
gives error
/mnt/A_BT_DEC10/BT__PROGRAMS/A_JAN11 _FEB4/A_BT_LIBRARY/A_DEC17_Bluetoothctl_Dialog_V1/Bluetoothctl_Dialog.pro:91: error: 'INCLUDE_DIRECTORIES' is not a recognized test function.
-
C Christian Ehrlicher moved this topic from General and Desktop on
-
Is there a recommended way to add common "include" path ?
In C/C++ common path is usually specified in complier option "/i "...
Qt has many "common " options in make (.pro) file...
ADDENDUM
adding to .proINCLUDE_DIRECTORIES("../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simplebluez/include/simplebluez")
gives error
/mnt/A_BT_DEC10/BT__PROGRAMS/A_JAN11 _FEB4/A_BT_LIBRARY/A_DEC17_Bluetoothctl_Dialog_V1/Bluetoothctl_Dialog.pro:91: error: 'INCLUDE_DIRECTORIES' is not a recognized test function.
See qmake variable reference for INCLUDE on how to add an include path for the compiler.
-
Is there a recommended way to add common "include" path ?
In C/C++ common path is usually specified in complier option "/i "...
Qt has many "common " options in make (.pro) file...
ADDENDUM
adding to .proINCLUDE_DIRECTORIES("../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simplebluez/include/simplebluez")
gives error
/mnt/A_BT_DEC10/BT__PROGRAMS/A_JAN11 _FEB4/A_BT_LIBRARY/A_DEC17_Bluetoothctl_Dialog_V1/Bluetoothctl_Dialog.pro:91: error: 'INCLUDE_DIRECTORIES' is not a recognized test function.
@AnneRanch I request you to use full path.
-
@AnneRanch I request you to use full path.
@Qt-embedded-developer ...have cloned rather LARGE project and there are numerous "include" , hence modifying each with full path is impractical Here is what I have so far and it is working as expected - all Linked In to my cloned copy
INCLUDEPATH += "../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simplebluez/include/simplebluez/" INCLUDEPATH += "../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simplebluez/include/" INCLUDEPATH += "../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simplebluez/simpledbus/advanced/" INCLUDEPATH += "../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simpledbus/include/"
-
See qmake variable reference for INCLUDE on how to add an include path for the compiler.
@Christian-Ehrlicher Thanks , it is working as expected.