mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-22 04:38:09 +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)
|
||||
|
Reference in New Issue
Block a user