Can't include an installed library
Hey, i started working with px4_msgs, i cloned and compiled the package properly but unfortunately i can't use the package when working on my own code with Clion: When i try to include the package It correctly link between the name and the external libraries, but can't actually include it in the code with the error that file not found.
Here is my CmakeLists file, If Someone faced this kind of issue and can help it will be awesome!!
cmake_minimum_required(VERSION 3.5)
project(drone)
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic -fpermissive)
endif()
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rclcpp_action REQUIRED)
find_package(std_msgs REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(nav_msgs REQUIRED)
find_package(px4_msgs REQUIRED)
ament_target_dependencies(${PROJECT_NAME}
"rclcpp"
"rclcpp_action"
"std_msgs"
"sensor_msgs"
"nav_msgs"
"px4_msgs"
)
install(TARGETS
${PROJECT_NAME}
DESTINATION
lib/${PROJECT_NAME}
)
ament_package()