diff options
author | Sumeet Koli | 2018-06-18 14:46:14 +0530 |
---|---|---|
committer | Sumeet Koli | 2018-06-18 14:46:14 +0530 |
commit | 44ad9efa7e729739cde3103d8fc1e475efa2a923 (patch) | |
tree | f87994e13c9b4d0082f7a743f29e1eafc9690fa9 /Source/CMakeLists.txt | |
parent | 931fdbe021ec59e211ac13b807c18a9b2ca9a76c (diff) | |
download | OpenModelicaEmbedded-44ad9efa7e729739cde3103d8fc1e475efa2a923.tar.gz OpenModelicaEmbedded-44ad9efa7e729739cde3103d8fc1e475efa2a923.tar.bz2 OpenModelicaEmbedded-44ad9efa7e729739cde3103d8fc1e475efa2a923.zip |
Change in directory structure
Diffstat (limited to 'Source/CMakeLists.txt')
-rwxr-xr-x | Source/CMakeLists.txt | 20 |
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}) |