How do I associate header files with other folders [message #1837350] |
Thu, 28 January 2021 04:01  |
Eclipse User |
|
|
|
Hello everyone, I wrote a statement to add a header file according to the cmMakelists.txt of mqtt_paho folder, as follows
forte_add_handler(pcf8591 /usr/include/pcf8591)
But, when I press the generate button in cmake-gui, it will add the current directory where cmakelists.txt is located, which ended up being "forte/ext_modules/test/usr/include". Then it can't find pcf8591. Do you know how to solve this problem? Thank you very much!
My cmakelists.txt:
forte_add_module(RECEIVE_VOLTAGE "Example test module")
forte_add_handler(pcf8591 /usr/include/pcf8591)
forte_add_handler(wiringPi /usr/include/wiringPi)
forte_add_sourcefile_hcpp(voltage_receive)
The fault of cmake-gui:
CMake Error at src/CMakeLists.txt:261 (add_library):
Cannot find source file:
/home/zxl/FORTEdev/ext_modules/Receive_Voltage/usr/include/pcf8591.h
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at src/CMakeLists.txt:261 (add_library):
No SOURCES given to target: FORTE_LITE
|
|
|
|
Powered by
FUDForum. Page generated in 0.05029 seconds