ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You need to either build i2c.c
into a library (like they do in their Makefile, you could use add_library
) and link against that library with your target_link_libraries
call (probably what I'd recommend), or you need to also build the source of i2c.c
into the executable that you are producing (might be a bit tricky with the fact that their source code is C not C++).
2 | No.2 Revision |
You need to either build i2c.c
into a library (like they do in their Makefile, you could use add_library
) and link against that library with your target_link_libraries
call (probably what I'd recommend), or you need to also build the source of i2c.c
into the executable that you are producing (might be a bit tricky with the fact that their source code is C not C++).
As it stands, the error you are seeing is because there is nothing in your CMakeLists.txt file even referencing the i2c.c
source code.