Made library easier to use from a CMake project: simply add_subdirectory(ArduinoJson/src)

This commit is contained in:
Benoit Blanchon
2015-11-19 21:53:27 +01:00
parent 9cc49da68a
commit 96245dd3b4
5 changed files with 17 additions and 8 deletions

View File

@ -1,10 +1,8 @@
set(GTEST_DIR ../third-party/gtest-1.7.0)
file(GLOB_RECURSE INC_FILES ../include/*.h)
file(GLOB TESTS_FILES *.hpp *.cpp)
include_directories(
../include
${GTEST_DIR}
${GTEST_DIR}/include)
@ -17,7 +15,6 @@ endif()
add_executable(ArduinoJsonTests
${TESTS_FILES}
${INC_FILES}
${GTEST_DIR}/src/gtest-all.cc
${GTEST_DIR}/src/gtest_main.cc)