1 cmake_minimum_required(VERSION 3.14)
10 target_include_directories(linenoise
11 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
14 add_executable(linenoise_example example.c)
15 target_link_libraries(linenoise_example linenoise)
17 add_executable(linenoise_utf8_example example.c)
18 target_link_libraries(linenoise_utf8_example linenoise)
19 target_compile_definitions(linenoise_utf8_example PUBLIC USE_UTF8)