aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/CMakeLists.txt
blob: 755ead3bac26027ec84d07abaf2000369413db43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
cmake_minimum_required(VERSION 3.19) # for COMMAND_ERROR_IS_FATAL

project(cimple VERSION 0.0.1 LANGUAGES C)

enable_testing()

add_compile_options(-std=c17 -Wpedantic -Wall -Wextra)
add_compile_options($<$<NOT:$<CONFIG:Debug>>:-Werror>)

add_compile_options(-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer)

add_subdirectory(src)
add_subdirectory(test)

install(FILES LICENSE.txt DESTINATION "share/doc/${PROJECT_NAME}")