aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2021-08-30 13:55:55 +0200
committerKristofer Jonsson <kristofer.jonsson@arm.com>2021-08-30 13:55:55 +0200
commit3bd342372638b185d097308445747a1a668fce01 (patch)
tree753c156a18a6001db3e9d89f806bc26cdb3e7b40 /lib
parentf40a3a9a120cb9510942ecf5aa2bd12a99de3516 (diff)
downloadethos-u-core-software-3bd342372638b185d097308445747a1a668fce01.tar.gz
Exporting define for layer by layer profiler21.08-rc321.08
Libraries that link the layer_by_layer_profiler interface library will also get the LAYER_BY_LAYER_PROFILE define appending to the build arguments. This allows the preprocessor to select which profiler to use. Change-Id: I85fec66d2dd9949fd7fe395fb44e49bda1539925
Diffstat (limited to 'lib')
-rw-r--r--lib/layer_by_layer_profiler/CMakeLists.txt17
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/layer_by_layer_profiler/CMakeLists.txt b/lib/layer_by_layer_profiler/CMakeLists.txt
index 7a16da2..1e3d012 100644
--- a/lib/layer_by_layer_profiler/CMakeLists.txt
+++ b/lib/layer_by_layer_profiler/CMakeLists.txt
@@ -21,6 +21,17 @@ if (NOT TARGET ethosu_core_driver)
endif()
add_library(layer_by_layer_profiler INTERFACE)
-target_link_libraries(layer_by_layer_profiler INTERFACE ethosu_core_driver tflu event_recorder ethosu_log)
-target_include_directories(layer_by_layer_profiler INTERFACE include)
-target_sources(layer_by_layer_profiler INTERFACE src/layer_by_layer_profiler.cpp)
+
+target_link_libraries(layer_by_layer_profiler INTERFACE
+ ethosu_core_driver
+ tflu event_recorder
+ ethosu_log)
+
+target_include_directories(layer_by_layer_profiler INTERFACE
+ include)
+
+target_sources(layer_by_layer_profiler INTERFACE
+ src/layer_by_layer_profiler.cpp)
+
+target_compile_definitions(layer_by_layer_profiler INTERFACE
+ LAYER_BY_LAYER_PROFILER)