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 |
|
---|
8 | cmake_minimum_required(VERSION 2.8.12)
|
---|
9 | project(ArduinoJson)
|
---|
10 |
|
---|
11 | enable_testing()
|
---|
12 |
|
---|
13 | set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
|
---|
14 | set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
|
---|
15 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
|
---|
16 |
|
---|
17 | if(${COVERAGE})
|
---|
18 | set(CMAKE_CXX_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage")
|
---|
19 | endif()
|
---|
20 |
|
---|
21 | add_subdirectory(src)
|
---|
22 | add_subdirectory(test)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.