summaryrefslogtreecommitdiff
path: root/OpenModelicaArduino/Source/CMakeLists.txt
diff options
context:
space:
mode:
authormanasdas172018-06-04 11:43:49 +0530
committerGitHub2018-06-04 11:43:49 +0530
commitaf40def1c18d18eb32845ec57b6b5f07a5bcf29d (patch)
tree5e6a0fa96746ea3c9beaea7fe54521d72fce8fc7 /OpenModelicaArduino/Source/CMakeLists.txt
parentfefaf700250d88595273b038909fe95d7602d125 (diff)
parent64db4ecdc6232c2e3f6d12a0381b7e601b49703c (diff)
downloadOpenModelicaEmbedded-1-af40def1c18d18eb32845ec57b6b5f07a5bcf29d.tar.gz
OpenModelicaEmbedded-1-af40def1c18d18eb32845ec57b6b5f07a5bcf29d.tar.bz2
OpenModelicaEmbedded-1-af40def1c18d18eb32845ec57b6b5f07a5bcf29d.zip
Merge pull request #1 from manasdas17/Ritu-Kanwar-Shekhawat
Ritu kanwar shekhawat
Diffstat (limited to 'OpenModelicaArduino/Source/CMakeLists.txt')
-rwxr-xr-xOpenModelicaArduino/Source/CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenModelicaArduino/Source/CMakeLists.txt b/OpenModelicaArduino/Source/CMakeLists.txt
new file mode 100755
index 0000000..6f2a222
--- /dev/null
+++ b/OpenModelicaArduino/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})