aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2022-07-12 15:46:10 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2022-07-12 15:46:10 -0400
commit4a196857e13bd65ef982fe90dae1a1865985ee94 (patch)
treeaf6b51959fa0f7319177b930f9cbef9902c5d126 /CMakeLists.txt
parent113f8d0e3d797d942ea6d40d8f6032595878b549 (diff)
downloadversion_compare-4a196857e13bd65ef982fe90dae1a1865985ee94.tar.gz
Initial commit
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..8ccb593
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,14 @@
+cmake_minimum_required(VERSION 3.0)
+project(version_compare C)
+
+set(CMAKE_C_STANDARD 99)
+
+if (MSVC)
+ # warning level 4 and all warnings as errors
+ add_compile_options(/W4 /WX)
+else()
+ # lots of warnings and all warnings
+ add_compile_options(-Wall -Wextra -pedantic)
+endif()
+
+add_executable(version_compare main.c)