forked from bblanchon/ArduinoJson
CMake: don't build tests when imported in another project
This commit is contained in:
1 parent
1f7a5e6943
commit
ae9b7926a2
7 files changed
+56
-73
No files matched your search
@@ -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