diff options
author | ritu | 2018-06-02 21:14:06 +0530 |
---|---|---|
committer | ritu | 2018-06-02 21:14:06 +0530 |
commit | c4223ee955f9af546b9ece9a0ef8d77f9c8b03d8 (patch) | |
tree | b0f3d925575885125999ce54d497aa969e7467c2 /OpenModelicaArduino/Source/CMakeLists.txt | |
download | OpenModelicaEmbedded-1-c4223ee955f9af546b9ece9a0ef8d77f9c8b03d8.tar.gz OpenModelicaEmbedded-1-c4223ee955f9af546b9ece9a0ef8d77f9c8b03d8.tar.bz2 OpenModelicaEmbedded-1-c4223ee955f9af546b9ece9a0ef8d77f9c8b03d8.zip |
simplified Pins and boards,double click issue, SynchronizeREalTime added
Diffstat (limited to 'OpenModelicaArduino/Source/CMakeLists.txt')
-rwxr-xr-x | OpenModelicaArduino/Source/CMakeLists.txt | 20 |
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}) |