To complie the project, you should do:
You can execute the following command if the ros version is earlier than noetic(eg. kinetic,meldic):
sudo apt-get install ros--serial
If the ros version is noetic, then do:
git clone https://github.com/wjwwood/serial.git
cd serial
cmake -DCMAKE_INSTALL_PREFIX=/opt/ros/noetic ..
sudo make install
cd catkin_ws/src
catkin_make