-
Notifications
You must be signed in to change notification settings - Fork 96
/
CMakeLists.txt
35 lines (26 loc) · 1.03 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
project(ENVYTOOLS C)
cmake_minimum_required(VERSION 3.5)
# <3 libxml2
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-pointer-sign")
find_package(LibXml2 REQUIRED)
find_path(LIBICONV_INCLUDE_DIR iconv.h)
include_directories(${LIBXML2_INCLUDE_DIR} ${LIBICONV_INCLUDE_DIR})
configure_file(rnn_path.h.in ${CMAKE_BINARY_DIR}/include-generated/rnn/rnn_path.h ESCAPE_QUOTES)
add_library(rnn rnn.c rnndec.c)
add_library(seq seq.c)
add_executable(demmio demmio.c)
add_executable(headergen headergen.c)
add_executable(dedma dedma.c dedma_cache.c dedma_back.c)
add_executable(lookup lookup.c)
add_executable(rnncheck rnncheck.c)
target_link_libraries(rnn ${LIBXML2_LIBRARIES} envyutil)
target_link_libraries(demmio envy nvhw rnn seq)
target_link_libraries(headergen rnn)
target_link_libraries(dedma rnn)
target_link_libraries(lookup rnn)
target_link_libraries(rnncheck rnn)
install(TARGETS demmio headergen rnn dedma lookup
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib${LIB_SUFFIX}
ARCHIVE DESTINATION lib${LIB_SUFFIX})
add_test(check_rnndb rnncheck root.xml)