refactor: 重命名 optimization,以后可以分离为 submodule

Signed-off-by: YdrMaster <ydrml@hotmail.com>
This commit is contained in:
YdrMaster 2023-04-19 11:15:31 +08:00
parent 34f7d7e9ed
commit 9cfe223953
21 changed files with 8 additions and 5 deletions

View File

@ -60,6 +60,9 @@ if(USE_PROTOBUF)
endif()
include_directories(include)
add_subdirectory(optimization)
# Pybind11
add_subdirectory(3rd-party/pybind11)
include_directories(3rd-party/pybind11/include)
@ -121,7 +124,7 @@ if(USE_PROTOBUF)
target_link_libraries(InfiniTensor tensor_proto)
endif()
target_link_libraries(InfiniTensor pybind11::embed)
target_link_libraries(InfiniTensor optimization pybind11::embed)
# TVM backend
if(BUILD_TEST_EINNET)

View File

@ -1,12 +1,12 @@
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
project(graph LANGUAGES CXX C)
project(optimization LANGUAGES CXX C)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
file(GLOB_RECURSE SRC src/*.h src/*.cc src/*.cpp)
add_library(graph ${SRC})
add_library(optimization ${SRC})
file(GLOB_RECURSE TEST test/*.cpp)
add_executable(test ${TEST})
target_link_libraries(test graph)
add_executable(test_optimization ${TEST})
target_link_libraries(test_optimization optimization)