mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-18 09:08:08 +08:00
Update CMake usage to enable C++17 (#156)
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).
This commit is contained in:

committed by
GitHub

parent
a56bb50807
commit
5ee4ec40de
@@ -1,7 +1,6 @@
|
||||
function(example name)
|
||||
add_executable(${name} ${name}.cpp)
|
||||
target_link_libraries(${name} PUBLIC component)
|
||||
set_property(TARGET ${name} PROPERTY CXX_STANDARD 17)
|
||||
endfunction(example)
|
||||
|
||||
example(button)
|
||||
|
@@ -1,7 +1,6 @@
|
||||
function(example name)
|
||||
add_executable(${name} ${name}.cpp)
|
||||
target_link_libraries(${name} PUBLIC dom)
|
||||
set_property(TARGET ${name} PROPERTY CXX_STANDARD 17)
|
||||
endfunction(example)
|
||||
|
||||
example(border)
|
||||
|
@@ -1,7 +1,6 @@
|
||||
function(example name)
|
||||
add_executable(${name} ${name}.cpp)
|
||||
target_link_libraries(${name} PUBLIC component)
|
||||
set_property(TARGET ${name} PROPERTY CXX_STANDARD 17)
|
||||
endfunction(example)
|
||||
|
||||
example(print_key_press)
|
||||
|
Reference in New Issue
Block a user