forked from bblanchon/ArduinoJson
CMake: don't build tests when imported in another project
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user