summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/tutf8e/CMakeLists.txt
blob: a056ef83c827f49513658db65b2d245f0aba8073 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cmake_minimum_required(VERSION 2.8)
project(tutf8e C)

# Not supported: -std=c90 (lacks support for inline)
# Supported:     -std=gnu90, -std=c99 or -std=gnu99

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Os -Wall")

include_directories(include)
add_library(tutf8e STATIC src/tutf8e.c)
set_property(TARGET tutf8e PROPERTY C_STANDARD 99)
set_property(TARGET tutf8e PROPERTY C_EXTENSIONS OFF)

add_executable(tutf8e-test test/test.c)
target_link_libraries(tutf8e-test tutf8e)
set_property(TARGET tutf8e-test PROPERTY C_STANDARD 99)
set_property(TARGET tutf8e-test PROPERTY C_EXTENSIONS ON)