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

This commit is contained in:
Benoit Blanchon committed 2020-04-11 18:49:28 +02:00
1 parent 1f7a5e6943
commit ae9b7926a2
7 files changed
+56 -73

No files matched your search

+5
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