![]() Registered Member ![]()
|
Hi all
Situation: The Project I am compiling is in ~/Documents/C/Projets/test_of_vector_tools I got a environment variable (defined in ~/.kde/env) :
int this path I have a subdirectoy "lib_kinematic" which contains a CMakeLists.txt that has that
In my project in Kdevelop the CMakeLists.txt lookslike that:
Questions in the main when I make #include "point.h" it says: no such file or directory when I try compiling What am I doing wrong? |
![]() Administrator ![]()
|
CMake works slightly differently - those ${QT_INCLUDES}, etc come from CMake itself - not the envrionment variables.
Try adjusting CMake to be called with a -DMY_OWN_INCLUDE=/path/to/my/includes/ and it should then work.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Hi thanks for your answer and sorry for the time, I have been quite busy the last days,
Unfortunately it does not work
will return a
Running a make after this will result in a
I have also tried a
|
![]() Administrator ![]()
|
Change "$MY_OWN_INCLUDE" to "${MY_OWN_INCLUDE}" to follow the CMake syntax.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft