CMakeLists.txt 425 Bytes
Newer Older
Paul's avatar
Paul committed
1

Paul's avatar
Paul committed
2
add_library(migraph_cpu
Paul's avatar
Paul committed
3
    cpu_target.cpp
Paul's avatar
Paul committed
4
    cpu_lowering.cpp
Paul's avatar
Paul committed
5
)
Paul's avatar
Paul committed
6
7
8

find_file(BLAZE_INCLUDE blaze/Blaze.h)

Paul's avatar
Paul committed
9
10
11
rocm_clang_tidy_check(migraph_cpu)
target_link_libraries(migraph_cpu migraph)
target_include_directories(migraph_cpu PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
Paul's avatar
Paul committed
12
target_include_directories(migraph_cpu PRIVATE ${BLAZE_INCLUDE})
Paul's avatar
Paul committed
13
target_compile_definitions(migraph_cpu PRIVATE -DBLAZE_USE_CPP_THREADS)