added files for CLion
Costa Tsaousis (ktsaou) committed
Apr 15, 2016 at 19:18 UTC
fc802b24cd45974026b407253c58fea35cc08801
2 files changed
+98
-2
.gitignore
+4
-2
@@ -32,7 +32,6 @@ netdata.spec
32
.cproject
33
.idea/
34
.project
35
-CMakeLists.txt
35
README
36
TODO.md
37
asan_symbolize.py
@@ -67,5 +66,8 @@ netdata-uninstaller.sh
66
67
gmon.out
68
gmon.txt
70
-
69
apps.plugin-profiler.sh
70
+
71
+CMakeCache.txt
72
+CMakeFiles/
73
+cmake_install.cmake
CMakeLists.txt
new
+94
@@ -0,0 +1,94 @@
1
+
2
+# This file is just a hack to make netdata
3
+# open in Clion
4
+# It cannot build netdata
5
+
6
+cmake_minimum_required(VERSION 3.3)
7
+project(netdata)
8
+
9
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
10
+
11
+set(NETDATA_SOURCE_FILES
12
+ src/appconfig.c
13
+ src/appconfig.h
14
+ src/avl.c
15
+ src/avl.h
16
+ src/common.c
17
+ src/common.h
18
+ src/daemon.c
19
+ src/daemon.h
20
+ src/dictionary.c
21
+ src/dictionary.h
22
+ src/global_statistics.c
23
+ src/global_statistics.h
24
+ src/log.c
25
+ src/log.h
26
+ src/main.c
27
+ src/main.h
28
+ src/plugin_checks.c
29
+ src/plugin_checks.h
30
+ src/plugin_idlejitter.c
31
+ src/plugin_idlejitter.h
32
+ src/plugin_nfacct.c
33
+ src/plugin_nfacct.h
34
+ src/plugin_proc.c
35
+ src/plugin_proc.h
36
+ src/plugins_d.c
37
+ src/plugins_d.h
38
+ src/plugin_tc.c
39
+ src/plugin_tc.h
40
+ src/popen.c
41
+ src/popen.h
42
+ src/proc_diskstats.c
43
+ src/procfile.c
44
+ src/procfile.h
45
+ src/proc_interrupts.c
46
+ src/proc_loadavg.c
47
+ src/proc_meminfo.c
48
+ src/proc_net_dev.c
49
+ src/proc_net_ip_vs_stats.c
50
+ src/proc_net_netstat.c
51
+ src/proc_net_rpc_nfsd.c
52
+ src/proc_net_snmp6.c
53
+ src/proc_net_snmp.c
54
+ src/proc_net_stat_conntrack.c
55
+ src/proc_net_stat_synproxy.c
56
+ src/proc_softirqs.c
57
+ src/proc_stat.c
58
+ src/proc_sys_kernel_random_entropy_avail.c
59
+ src/proc_vmstat.c
60
+ src/rrd2json.c
61
+ src/rrd2json.h
62
+ src/rrd.c
63
+ src/rrd.h
64
+ src/storage_number.c
65
+ src/storage_number.h
66
+ src/sys_kernel_mm_ksm.c
67
+ src/unit_test.c
68
+ src/unit_test.h
69
+ src/url.c
70
+ src/url.h
71
+ src/web_buffer.c
72
+ src/web_buffer.h
73
+ src/web_client.c
74
+ src/web_client.h
75
+ src/web_server.c
76
+ src/web_server.h
77
+ config.h)
78
+
79
+set(APPS_PLUGIN_SOURCE_FILES
80
+ src/appconfig.c
81
+ src/appconfig.h
82
+ src/apps_plugin.c
83
+ src/avl.c
84
+ src/avl.h
85
+ src/common.c
86
+ src/common.h
87
+ src/log.c
88
+ src/log.h
89
+ config.h)
90
+
91
+add_definitions(-DHAVE_CONFIG_H -DNETDATA_INTERNAL_CHECKS=1 -DCACHE_DIR="/tmp" -DCONFIG_DIR="/tmp" -DLOG_DIR="/tmp" -DPLUGINS_DIR="/tmp" -DWEB_DIR="/tmp")
92
+
93
+add_executable(netdata ${NETDATA_SOURCE_FILES})
94
+add_executable(apps.plugin ${APPS_PLUGIN_SOURCE_FILES})