aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..8068760
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,12 @@
+cmake_minimum_required(VERSION 3.0)
+project(mstat C)
+include(GNUInstallDirs)
+
+set(CMAKE_C_STANDARD 99)
+add_executable(mstat mstat.c common.c)
+add_executable(mstat_plot mstat_plot.c common.c)
+add_executable(mstat_export mstat_export.c common.c)
+
+install(TARGETS mstat mstat_plot mstat_export
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+)