forked from NetTLP/libtlp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
62 lines (42 loc) · 1.68 KB
/
Copy pathCMakeLists.txt
File metadata and controls
62 lines (42 loc) · 1.68 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
cmake_minimum_required(VERSION 3.1)
project(tlp)
set(CMAKE_C_FLAGS "-Wall -O -g")
# libtlp
add_library(tlp STATIC lib/libtlp.c)
target_include_directories(tlp PUBLIC include)
install(TARGETS tlp DESTINATION /usr/local/lib)
install(FILES include/libtlp.h include/tlp.h DESTINATION /usr/local/include)
# test
add_executable(test_dma_read test/test_dma_read.c)
target_link_libraries(test_dma_read tlp)
add_executable(test_dma_write test/test_dma_write.c)
target_link_libraries(test_dma_write tlp)
add_executable(test_msg_bar4 test/test_msg_bar4.c)
target_link_libraries(test_msg_bar4 tlp)
add_executable(test_msg_msix test/test_msg_msix.c)
target_link_libraries(test_msg_msix tlp)
add_executable(test_msg_devid test/test_msg_devid.c)
target_link_libraries(test_msg_devid tlp)
# apps
add_executable(example apps/example.c)
target_link_libraries(example tlp)
add_executable(dma_read apps/dma_read.c)
target_link_libraries(dma_read tlp)
add_executable(dma_write apps/dma_write.c)
target_link_libraries(dma_write tlp)
add_executable(psmem apps/psmem.c)
target_link_libraries(psmem tlp pthread)
add_executable(process-list apps/process-list.c)
target_link_libraries(process-list tlp)
add_executable(priv-escalation apps/priv-escalation.c)
target_link_libraries(priv-escalation tlp)
add_executable(pgd-walk apps/pgd-walk.c)
target_link_libraries(pgd-walk tlp)
add_executable(codedump apps/codedump.c)
target_link_libraries(codedump tlp)
add_executable(tlpperf apps/tlpperf.c)
target_link_libraries(tlpperf tlp pthread)
add_executable(pcie_cfg_read apps/pcie_cfg_read.c)
target_link_libraries(pcie_cfg_read tlp)
add_executable(pcie_cfg_write apps/pcie_cfg_write.c)
target_link_libraries(pcie_cfg_write tlp)