aboutsummaryrefslogtreecommitdiff
path: root/SerialPort/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'SerialPort/CMakeLists.txt')
-rwxr-xr-xSerialPort/CMakeLists.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/SerialPort/CMakeLists.txt b/SerialPort/CMakeLists.txt
new file mode 100755
index 0000000..dc7aa6b
--- /dev/null
+++ b/SerialPort/CMakeLists.txt
@@ -0,0 +1,19 @@
+if (WIN32)
+ add_library (SerialPort STATIC
+ SerialPortFactory.cpp
+ SerialPort.cpp
+ SerialPortWin32.cpp
+ )
+else()
+ add_library (SerialPort STATIC
+ SerialPortFactory.cpp
+ SerialPort.cpp
+ SerialPortUnix.cpp
+ )
+endif()
+
+set_target_properties (SerialPort PROPERTIES
+ CXX_STANDARD 11
+ CXX_STANDARD_REQUIRED ON
+ CXX_EXTENSIONS OFF
+)