summaryrefslogtreecommitdiff
path: root/Source/CMakeLists.txt
diff options
context:
space:
mode:
authormanasdas172018-06-02 10:59:17 +0530
committermanasdas172018-06-02 10:59:17 +0530
commitee305e1716587a04a14b5d0369426abf7faea118 (patch)
tree06c2437ac7d48daa043b710cb24e733de10dcc27 /Source/CMakeLists.txt
downloadOpenModelicaEmbedded-ee305e1716587a04a14b5d0369426abf7faea118.tar.gz
OpenModelicaEmbedded-ee305e1716587a04a14b5d0369426abf7faea118.tar.bz2
OpenModelicaEmbedded-ee305e1716587a04a14b5d0369426abf7faea118.zip
Add initial working verison of OpenModelicaArduino
Diffstat (limited to 'Source/CMakeLists.txt')
-rwxr-xr-xSource/CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
new file mode 100755
index 0000000..6f2a222
--- /dev/null
+++ b/Source/CMakeLists.txt
@@ -0,0 +1,20 @@
+set(CMAKE_BUILD_TYPE Release)
+
+cmake_minimum_required(VERSION 2.8)
+
+if(WIN32)
+ add_definitions(-DWINDOWS)
+elseif(UNIX AND NOT APPLE)
+ add_definitions(-DLINUX)
+elseif(APPLE)
+ add_definitions(-DMACOSX)
+ SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -framework CoreFoundation -framework IOKit" )
+else()
+ message(SEND_ERROR "Undefined platform")
+endif()
+
+
+
+set(SRC modelPlugFirmata.cpp modelPlugFirmata.h serial.cpp serial.h)
+
+add_library(modelPlugFirmata SHARED ${SRC})