I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.
if ufw is not installed by default be sure to install it first.
| # Thanks to @danger89 and @Ilothar for updating the gist. | |
| # Set the name and the supported language of the project | |
| project(hello-world C CXX) | |
| # Set the minimum version of cmake required to build this project | |
| cmake_minimum_required(VERSION 3.10) | |
| # Use the package PkgConfig to detect GTK+ headers/library files | |
| find_package(PkgConfig REQUIRED) | |
| pkg_check_modules(GTK REQUIRED gtkmm-3.0) |
| #include "StdAfx.h" | |
| #include <Setupapi.h> | |
| #pragma comment(lib, "Setupapi.lib") | |
| #include "SerialPort.h" | |
| SerialPort::SerialPort(void) : end_of_line_char_('\n') | |
| { | |
| } |