source: rtos_arduino/trunk/arduino_lib/libraries/ArduinoJson/test/CMakeLists.txt@ 209

Last change on this file since 209 was 209, checked in by ertl-honda, 8 years ago

BlueMix用のフィアルを追加

File size: 794 bytes
Line 
1# Copyright Benoit Blanchon 2014-2016
2# MIT License
3#
4# Arduino JSON library
5# https://github.com/bblanchon/ArduinoJson
6# If you like this project, please add a star!
7
8set(GTEST_DIR ../third-party/gtest-1.7.0)
9
10file(GLOB TESTS_FILES *.hpp *.cpp)
11
12include_directories(
13 ${GTEST_DIR}
14 ${GTEST_DIR}/include)
15
16add_definitions(-DGTEST_HAS_PTHREAD=0)
17
18# Workaround for Visual Studio 2012
19if (MSVC AND MSVC_VERSION EQUAL 1700)
20 add_definitions(-D_VARIADIC_MAX=10)
21endif()
22
23if (MSVC)
24 add_definitions(-D_CRT_SECURE_NO_WARNINGS)
25endif()
26
27add_executable(ArduinoJsonTests
28 ${TESTS_FILES}
29 ${GTEST_DIR}/src/gtest-all.cc
30 ${GTEST_DIR}/src/gtest_main.cc)
31
32
33target_link_libraries(ArduinoJsonTests ArduinoJson)
34
35add_test(ArduinoJsonTests ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ArduinoJsonTests)
Note: See TracBrowser for help on using the repository browser.