summaryrefslogtreecommitdiff
path: root/compiler/nnkit-misc/backend/CMakeLists.txt
blob: d351d5ce55f7917ff6a19ffd3e571b5f1246ee0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
file(GLOB_RECURSE SOURCES "src/*.cpp")

add_library(nnkit_support_backend STATIC ${SOURCES})
target_include_directories(nnkit_support_backend PUBLIC include)
target_link_libraries(nnkit_support_backend PUBLIC nnkit_intf_backend)
target_link_libraries(nnkit_support_backend PUBLIC dl)
target_link_libraries(nnkit_support_backend PUBLIC stdex)

find_package(Threads QUIET)

if(TARGET Threads::Threads)
  # This is necessary to support multi-threaded backends
  target_link_libraries(nnkit_support_backend PUBLIC Threads::Threads)
endif(TARGET Threads::Threads)