-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
38 lines (29 loc) · 972 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
38 lines (29 loc) · 972 Bytes
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
cmake_minimum_required(VERSION 3.16)
project(kmemleak LANGUAGES C)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
# SlabGrowthDetector executable
add_executable(SlabGrowthDetector
SlabGrowthDetector/main.c
SlabGrowthDetector/analysis.h
SlabGrowthDetector/slabinfolist.h
SlabGrowthDetector/vmstatlist.h
)
# JSlabLeakDetector executable
add_executable(JSlabLeakDetector
JSlabLeakDetector/main.c
JSlabLeakDetector/DataStructures.h
JSlabLeakDetector/slablist.h
)
# SingleFileJSlab executable
add_executable(SingleFileJSlab
SingleFileJSlab/main.c
)
# Link math library for SingleFileJSlab
target_link_libraries(SingleFileJSlab PRIVATE m)
add_custom_target(qmltests SOURCES SlabGrowthDetector/tst_testcases.qml)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include(GNUInstallDirs)
install(TARGETS SlabGrowthDetector JSlabLeakDetector SingleFileJSlab
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)