aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 8ccb59342dd3b1ba48c33c47097b4d242c6dd874 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)