mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-01 00:37:31 +08:00
5ee4ec40de
The target_compile_features command allows setting PUBLIC compile features for the library, making it implicit for the applications linking it. This reduces the CMake boilerplate required to set up a dependent project (eg. ftxui-starter).
30 lines
616 B
CMake
30 lines
616 B
CMake
function(example name)
|
|
add_executable(${name} ${name}.cpp)
|
|
target_link_libraries(${name} PUBLIC dom)
|
|
endfunction(example)
|
|
|
|
example(border)
|
|
example(color_gallery)
|
|
example(dbox)
|
|
example(gauge)
|
|
example(graph)
|
|
example(hflow)
|
|
example(html_like)
|
|
example(package_manager)
|
|
example(paragraph)
|
|
example(separator)
|
|
example(size)
|
|
example(spinner)
|
|
example(style_blink)
|
|
example(style_bold)
|
|
example(style_color)
|
|
example(color_truecolor_RGB)
|
|
example(color_truecolor_HSV)
|
|
example(color_info_palette256)
|
|
example(style_dim)
|
|
example(style_gallery)
|
|
example(style_inverted)
|
|
example(style_underlined)
|
|
example(vbox_hbox)
|
|
example(window)
|