Imported Upstream version 1.8.0
[platform/core/ml/nnfw.git] / compiler / luci-interpreter / src / loader / CMakeLists.txt
1 nnas_find_package(GTest REQUIRED)
2
3 set(SOURCES
4     GraphLoader.h
5     GraphLoader.cpp
6     KernelBuilder.h
7     KernelBuilder.cpp
8     ModuleLoader.h
9     ModuleLoader.cpp
10     RuntimeToIR.h)
11
12 add_library(luci_interpreter_loader STATIC ${SOURCES})
13 set_target_properties(luci_interpreter_loader PROPERTIES POSITION_INDEPENDENT_CODE ON)
14 target_include_directories(luci_interpreter_loader PUBLIC "${LUCI_INTERPRETER_SOURCE_DIR}")
15 target_link_libraries(luci_interpreter_loader
16     PUBLIC luci_lang luci_interpreter_core
17     PRIVATE luci_interpreter_kernels nncc_common)
18
19 set(TEST_SOURCES KernelBuilder.test.cpp)
20
21 GTest_AddTest(luci_interpreter_loader_test ${TEST_SOURCES})
22 target_link_libraries(luci_interpreter_loader_test luci_interpreter_loader)