Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[onert-micro] Fix kernels CMake file #11563

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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