]> arthur.barton.de Git - netdata.git/blobdiff - CMakeLists.txt
Merge pull request #1313 from rlefevre/monotonic-clock
[netdata.git] / CMakeLists.txt
index 30ec26a9cca8703f1bcc3a6ead7bd4e732daed11..d58e66cbe0ee67dde922cb18f750fb6d4a0d8195 100755 (executable)
@@ -7,21 +7,31 @@ project(netdata C)
 
 find_package (Threads)
 
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wformat-signedness")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wformat-signedness -Werror=format-security -DNETDATA_INTERNAL_CHECKS=1")
 
 set(NETDATA_SOURCE_FILES
         src/appconfig.c
         src/appconfig.h
         src/avl.c
         src/avl.h
+        src/backends.c
+        src/backends.h
+        src/clocks.c
+        src/clocks.h
         src/common.c
         src/common.h
         src/daemon.c
         src/daemon.h
         src/dictionary.c
         src/dictionary.h
+        src/eval.c
+        src/eval.h
         src/global_statistics.c
         src/global_statistics.h
+        src/health.c
+        src/health.h
+        src/ipc.c
+        src/ipc.h
         src/log.c
         src/log.h
         src/main.c
@@ -49,13 +59,15 @@ set(NETDATA_SOURCE_FILES
         src/proc_net_dev.c
         src/proc_net_ip_vs_stats.c
         src/proc_net_netstat.c
+        src/proc_net_rpc_nfs.c
         src/proc_net_rpc_nfsd.c
         src/proc_net_snmp6.c
         src/proc_net_snmp.c
+        src/proc_net_softnet_stat.c
         src/proc_net_stat_conntrack.c
         src/proc_net_stat_synproxy.c
-               src/proc_self_mountinfo.c
-               src/proc_self_mountinfo.h
+        src/proc_self_mountinfo.c
+        src/proc_self_mountinfo.h
         src/proc_softirqs.c
         src/proc_stat.c
         src/proc_sys_kernel_random_entropy_avail.c
@@ -68,8 +80,8 @@ set(NETDATA_SOURCE_FILES
         src/rrd.h
         src/storage_number.c
         src/storage_number.h
-        src/sys_kernel_mm_ksm.c
         src/sys_fs_cgroup.c
+        src/sys_kernel_mm_ksm.c
         src/unit_test.c
         src/unit_test.h
         src/url.c
@@ -77,12 +89,12 @@ set(NETDATA_SOURCE_FILES
         src/web_buffer.c
         src/web_buffer.h
         src/web_buffer_svg.c
-               src/web_buffer_svg.h
+        src/web_buffer_svg.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
@@ -96,10 +108,8 @@ set(APPS_PLUGIN_SOURCE_FILES
         src/log.h
         src/procfile.c
         src/procfile.h
-        src/storage_number.c
-        src/storage_number.h
-               src/web_buffer.c
-               src/web_buffer.h
+        src/web_buffer.c
+        src/web_buffer.h
         config.h)
 
 include_directories(AFTER .)