Skip to content

Commit

Permalink
[onert-micro] Fix kernels CMakeLists (#11563)
Browse files Browse the repository at this point in the history
This commit fixes kernels CMakeLists for onert-micro

ONE-DCO-1.0-Signed-off-by: Artem Balyshev <[email protected]>

Co-authored-by: Artem Balyshev <[email protected]>
  • Loading branch information
BalyshevArtem and Artem Balyshev authored Sep 21, 2023
1 parent 871755f commit ae16dc0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions onert-micro/luci-interpreter/src/kernels/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ macro(REGISTER_KERNEL OPERATOR, NODE)
list(APPEND SOURCES "${NODE}.cpp")
endmacro(REGISTER_KERNEL)

macro(REGISTER_TRAIN_KERNEL OPERATOR, NODE)
list(APPEND SOURCES "${NODE}.train.cpp")
endmacro(REGISTER_TRAIN_KERNEL)

include("${LUCI_INTERPRETER_PAL_DIR}/KernelsToTrain.lst")

include(${KERNEL_REGISTER_FILE})

add_library(${LUCI_INTERPRETER_KERNELS} STATIC ${SOURCES})
Expand All @@ -37,14 +43,8 @@ macro(REGISTER_KERNEL OPERATOR, NODE)
list(APPEND TEST_SOURCES "${NODE}.test.cpp")
endmacro(REGISTER_KERNEL)

macro(REGISTER_TRAIN_KERNEL OPERATOR, NODE)
list(APPEND SOURCES "${NODE}.train.cpp")
endmacro(REGISTER_TRAIN_KERNEL)

include(${KERNEL_REGISTER_FILE})

include("${LUCI_INTERPRETER_PAL_DIR}/KernelsToTrain.lst")

list(APPEND TEST_SOURCES TestUtils.h TestUtils.cpp)

GTest_AddTest(${LUCI_INTERPRETER_KERNELS}_test ${TEST_SOURCES})
Expand Down

0 comments on commit ae16dc0

Please sign in to comment.