CMake: don't build tests when imported in another project

This commit is contained in:
Benoit Blanchon
2020-04-11 12:25:38 +02:00
parent 1f7a5e6943
commit ae9b7926a2
7 changed files with 56 additions and 73 deletions

View File

@ -17,6 +17,11 @@ target_include_directories(ArduinoJson
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_definitions(ArduinoJson
INTERFACE
ARDUINOJSON_DEBUG=$<CONFIG:Debug>
)
# locations are provided by GNUInstallDirs
install(
TARGETS