5 KernelBuilderHelper.cpp
13 # include kernel specific builders
14 macro(REGISTER_KERNEL NODE)
15 list(APPEND SOURCES "nodes/${NODE}.cpp")
16 endmacro(REGISTER_KERNEL)
17 include(${KERNEL_REGISTER_FILE})
19 add_library(${LUCI_INTERPRETER_LOADER} STATIC ${SOURCES})
20 set_target_properties(${LUCI_INTERPRETER_LOADER} PROPERTIES POSITION_INDEPENDENT_CODE ON)
21 target_include_directories(${LUCI_INTERPRETER_LOADER} PUBLIC "${LUCI_INTERPRETER_PAL_DIR}")
22 target_include_directories(${LUCI_INTERPRETER_LOADER} PUBLIC "${LUCI_INTERPRETER_SOURCE_DIR}")
24 target_link_libraries(${LUCI_INTERPRETER_LOADER}
25 PUBLIC luci_lang ${LUCI_INTERPRETER_CORE}
26 PRIVATE ${LUCI_INTERPRETER_KERNELS} nncc_common luci_plan)
30 endif(NOT ENABLE_TEST)
32 nnas_find_package(GTest REQUIRED)
34 set(TEST_SOURCES KernelBuilder.test.cpp)
36 GTest_AddTest(${LUCI_INTERPRETER_LOADER}_test ${TEST_SOURCES})
37 target_link_libraries(${LUCI_INTERPRETER_LOADER}_test ${LUCI_INTERPRETER_LOADER})