From be891daa5a9ef63240c191653aba9dbbe4708fb2 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Tue, 14 Oct 2014 09:51:23 +0200 Subject: [PATCH] Added CMakeLists.txt --- .gitignore | 1 + CMakeLists.txt | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 CMakeLists.txt diff --git a/.gitignore b/.gitignore index 942b111a..d5df0a4e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ Debug ipch *.opensdf +/cmake diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..1f258a5f --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,19 @@ +cmake_minimum_required(VERSION 2.8.4) +project(ArduinoJson) + +file(GLOB_RECURSE SRCS_FILES srcs/*.cpp) +file(GLOB TESTS_FILES tests/*.cpp) + +add_library(ArduinoJson ${SRCS_FILES}) + +include_directories( + srcs + third-party/gtest-1.7.0 + third-party/gtest-1.7.0/include) + +add_executable(ArduinoJsonTests + ${TESTS_FILES} + third-party/gtest-1.7.0/src/gtest-all.cc + third-party/gtest-1.7.0/src/gtest_main.cc) + +target_link_libraries(ArduinoJsonTests ArduinoJson) \ No newline at end of file