Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion lib/tutf8e/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ project(tutf8e)
# Not supported: -std=c90 (lacks support for inline)
# Supported: -std=gnu90, -std=c99 or -std=gnu99

set(CMAKE_C_FLAGS "-Os -Wall")
# set(CMAKE_C_FLAGS "-Os -Wall")

set(CMAKE_C_FLAGS "-g -Wall")

include_directories(include)
add_library(tutf8e STATIC src/tutf8e.c)
Expand All @@ -15,3 +17,14 @@ 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 OFF)

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


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