mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-05-05 22:01:13 +08:00

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).
7 lines
158 B
CMake
7 lines
158 B
CMake
function(example name)
|
|
add_executable(${name} ${name}.cpp)
|
|
target_link_libraries(${name} PUBLIC component)
|
|
endfunction(example)
|
|
|
|
example(print_key_press)
|