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

Paul's avatar
Paul committed
2
add_library(migraph 
Paul's avatar
Paul committed
3
    dead_code_elimination.cpp
Paul's avatar
Paul committed
4
    generate.cpp
Paul's avatar
Paul committed
5
6
    program.cpp
    shape.cpp
mei-ye's avatar
staging  
mei-ye committed
7
    opt/optimize.cpp
mei-ye's avatar
staging  
mei-ye committed
8
    opt/memory_coloring.cpp
Paul's avatar
Paul committed
9
)
Paul's avatar
Paul committed
10
11
rocm_clang_tidy_check(migraph)
target_include_directories(migraph PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
Paul's avatar
Paul committed
12
13

add_subdirectory(onnx)
Paul's avatar
Paul committed
14
add_subdirectory(targets/cpu)
Paul's avatar
Paul committed
15
if(MIGRAPH_ENABLE_GPU)
Paul's avatar
Paul committed
16
add_subdirectory(targets/gpu)
Paul's avatar
Paul committed
17
endif()
mei-ye's avatar
staging  
mei-ye committed
18
19
20
21
22
23

install (TARGETS migraph
   LIBRARY DESTINATION /opt/rocm/lib)

install (DIRECTORY include/migraph DESTINATION /opt/rocm/include)