]> arthur.barton.de Git - netdata.git/commitdiff
added files for CLion
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Fri, 15 Apr 2016 16:18:06 +0000 (19:18 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Fri, 15 Apr 2016 16:18:06 +0000 (19:18 +0300)
.gitignore
CMakeLists.txt [new file with mode: 0755]

index d3d8aaf802627cab5b58d9eb7994ae47eeb19d5f..f4b9fe85e3ba6cab7bbe1b561feb812b530f9c80 100644 (file)
@@ -32,7 +32,6 @@ netdata.spec
 .cproject
 .idea/
 .project
-CMakeLists.txt
 README
 TODO.md
 asan_symbolize.py
@@ -67,5 +66,8 @@ netdata-uninstaller.sh
 
 gmon.out
 gmon.txt
-
 apps.plugin-profiler.sh
+
+CMakeCache.txt
+CMakeFiles/
+cmake_install.cmake
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..2c7abd2
--- /dev/null
@@ -0,0 +1,94 @@
+
+# This file is just a hack to make netdata
+# open in Clion
+# It cannot build netdata
+
+cmake_minimum_required(VERSION 3.3)
+project(netdata)
+
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
+
+set(NETDATA_SOURCE_FILES
+       src/appconfig.c
+       src/appconfig.h
+       src/avl.c
+       src/avl.h
+       src/common.c
+       src/common.h
+       src/daemon.c
+       src/daemon.h
+       src/dictionary.c
+       src/dictionary.h
+       src/global_statistics.c
+       src/global_statistics.h
+       src/log.c
+       src/log.h
+       src/main.c
+       src/main.h
+       src/plugin_checks.c
+       src/plugin_checks.h
+       src/plugin_idlejitter.c
+       src/plugin_idlejitter.h
+       src/plugin_nfacct.c
+       src/plugin_nfacct.h
+       src/plugin_proc.c
+       src/plugin_proc.h
+       src/plugins_d.c
+       src/plugins_d.h
+       src/plugin_tc.c
+       src/plugin_tc.h
+       src/popen.c
+       src/popen.h
+       src/proc_diskstats.c
+       src/procfile.c
+       src/procfile.h
+       src/proc_interrupts.c
+       src/proc_loadavg.c
+       src/proc_meminfo.c
+       src/proc_net_dev.c
+       src/proc_net_ip_vs_stats.c
+       src/proc_net_netstat.c
+       src/proc_net_rpc_nfsd.c
+       src/proc_net_snmp6.c
+       src/proc_net_snmp.c
+       src/proc_net_stat_conntrack.c
+       src/proc_net_stat_synproxy.c
+       src/proc_softirqs.c
+       src/proc_stat.c
+       src/proc_sys_kernel_random_entropy_avail.c
+       src/proc_vmstat.c
+       src/rrd2json.c
+       src/rrd2json.h
+       src/rrd.c
+       src/rrd.h
+       src/storage_number.c
+       src/storage_number.h
+       src/sys_kernel_mm_ksm.c
+       src/unit_test.c
+       src/unit_test.h
+       src/url.c
+       src/url.h
+       src/web_buffer.c
+       src/web_buffer.h
+       src/web_client.c
+       src/web_client.h
+       src/web_server.c
+       src/web_server.h
+        config.h)
+
+set(APPS_PLUGIN_SOURCE_FILES
+       src/appconfig.c
+       src/appconfig.h
+       src/apps_plugin.c
+       src/avl.c
+       src/avl.h
+       src/common.c
+       src/common.h
+       src/log.c
+       src/log.h
+        config.h)
+
+add_definitions(-DHAVE_CONFIG_H -DNETDATA_INTERNAL_CHECKS=1 -DCACHE_DIR="/tmp" -DCONFIG_DIR="/tmp" -DLOG_DIR="/tmp" -DPLUGINS_DIR="/tmp" -DWEB_DIR="/tmp")
+
+add_executable(netdata ${NETDATA_SOURCE_FILES})
+add_executable(apps.plugin ${APPS_PLUGIN_SOURCE_FILES})