Cmakelist For Jetson GPIO on ROS melodic [closed]
Hi, I am trying to use GPIO on Jetson via ROS but seems like my CMakelist is not properly setup due to which I am getting errors as
undefined reference to 'GPIO::setmode(GPIO::NumberingModes)'
Below is my Cmakelist
cmake_minimum_required(VERSION 3.0.2)
project(camera_gpio)
## Find catkin and any catkin packages
find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs genmsg)
## Generate added messages and services
generate_messages(DEPENDENCIES std_msgs)
## Declare a catkin package
catkin_package(
LIBRARIES camera_gpio
CATKIN_DEPENDS roscpp rospy std_msgs)
# set(GPIO_INCLUDE_DIR ../include )
## Build talker and listener
include_directories(include ${catkin_INCLUDE_DIRS})
add_executable(gpio_control src/camera_gpio_node.cpp)
target_link_libraries(gpio_control ${catkin_LIBRARIES})
add_dependencies(gpio_control ${catkin_EXPORTED_TARGETS} ${${PROJECT_NAME}_EXPORTED_TARGETS})
Any help would be appreciated.
Below is my file structure