mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-28 16:29:34 +08:00
Separator ftxui::{screen,dom,component} into separate build unit.
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
function(example name)
|
||||
add_executable(${name} ${name}.cpp)
|
||||
target_link_libraries(${name} PUBLIC ftxui)
|
||||
endfunction(example)
|
||||
|
||||
add_subdirectory(component)
|
||||
add_subdirectory(dom)
|
||||
example(print_key_press)
|
||||
|
||||
add_executable(print_key_press print_key_press.cpp)
|
||||
target_link_libraries(print_key_press PUBLIC component)
|
||||
|
@@ -1,3 +1,9 @@
|
||||
find_package(ftxui)
|
||||
function(example name)
|
||||
add_executable(${name} ${name}.cpp)
|
||||
target_link_libraries(${name} PUBLIC component)
|
||||
endfunction(example)
|
||||
|
||||
example(input)
|
||||
example(menu)
|
||||
example(menu2)
|
||||
|
@@ -1,3 +1,8 @@
|
||||
function(example name)
|
||||
add_executable(${name} ${name}.cpp)
|
||||
target_link_libraries(${name} PUBLIC dom)
|
||||
endfunction(example)
|
||||
|
||||
example(blink)
|
||||
example(bold)
|
||||
example(color)
|
||||
|
Reference in New Issue
Block a user