Splitted CMakeLists.txt

This commit is contained in:
Benoit Blanchon
2014-10-14 10:01:46 +02:00
parent be891daa5a
commit 8f74e4e44e
3 changed files with 23 additions and 15 deletions

View File

@ -1,19 +1,7 @@
cmake_minimum_required(VERSION 2.8.4)
project(ArduinoJson)
file(GLOB_RECURSE SRCS_FILES srcs/*.cpp)
file(GLOB TESTS_FILES tests/*.cpp)
enable_testing()
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)
add_subdirectory(srcs)
add_subdirectory(tests)