CMakeLists.txt 997 字节
Newer Older
1
include_directories(${GTEST_DIR}/googletest/include)
2
include_directories(${UNITTEST_DIR}include)
3
include_directories(${UNITTEST_DIR}src)
4

5
include_directories(${AKG_SOURCE_DIR}/src)
6 7
include_directories(${AKG_SOURCE_DIR}/src/include)

8
include_directories(${TVM_DIR}/include)
9
include_directories(${TVM_DIR}/src)
10
include_directories(${TVM_DIR}/topi/include)
11 12
include_directories(AFTER "${TVM_DIR}/3rdparty/dmlc-core/include")
include_directories(AFTER "${TVM_DIR}/3rdparty/dlpack/include")
13

14 15 16 17
include_directories(${AKG_SOURCE_DIR}/third_party/isl_wrap/include)
include_directories(${ISL_DIR}/include)
include_directories(${ISL_DIR})

18 19 20 21 22 23
file(
  GLOB
  UT_CPP_SRC
  unittest_main.cc
  src/base/*.cc
  src/base_test/*.cc
L
LuoYin 已提交
24
  src/pass_test_base/*.cc
25 26
  src/pass_test/*.cc
  src/poly_pass_test/*.cc)
27

28 29
link_directories(${CMAKE_BINARY_DIR}/googletest/googlemock/gtest)

30 31
add_executable(unittest_main ${UT_CPP_SRC})

32
target_link_libraries(unittest_main PRIVATE akg akg::gtest ${TVM_RUNTIME_LINKER_LIBS} rt dl pthread)