mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-26 04:31:34 +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).
26 lines
529 B
CMake
26 lines
529 B
CMake
function(example name)
|
|
add_executable(${name} ${name}.cpp)
|
|
target_link_libraries(${name} PUBLIC component)
|
|
endfunction(example)
|
|
|
|
example(button)
|
|
example(checkbox)
|
|
example(checkbox_in_frame)
|
|
example(composition)
|
|
example(gallery)
|
|
example(homescreen)
|
|
example(input)
|
|
example(menu)
|
|
example(menu2)
|
|
example(menu_multiple)
|
|
example(menu_style)
|
|
example(modal_dialog)
|
|
example(radiobox)
|
|
example(radiobox_in_frame)
|
|
example(slider)
|
|
example(slider_rgb)
|
|
example(tab_horizontal)
|
|
example(tab_vertical)
|
|
example(toggle)
|
|
example(resizable_split)
|