mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-11-01 02:58:12 +08:00 
			
		
		
		
	 8ef18ab647
			
		
	
	8ef18ab647
	
	
		
			
	
		
	
	
		
			Some checks are pending
		
		
	
	Build / Bazel, ${{ matrix.cxx }}, ${{ matrix.os }} (cl, cl, windows-latest) (push) Waiting to run
				
			Build / Bazel, ${{ matrix.cxx }}, ${{ matrix.os }} (clang, clang++, macos-latest) (push) Waiting to run
				
			Build / Bazel, ${{ matrix.cxx }}, ${{ matrix.os }} (clang, clang++, ubuntu-latest) (push) Waiting to run
				
			Build / Bazel, ${{ matrix.cxx }}, ${{ matrix.os }} (gcc, g++, macos-latest) (push) Waiting to run
				
			Build / Bazel, ${{ matrix.cxx }}, ${{ matrix.os }} (gcc, g++, ubuntu-latest) (push) Waiting to run
				
			Build / CMake, ${{ matrix.compiler }}, ${{ matrix.os }} (cl, Windows MSVC, windows-latest) (push) Waiting to run
				
			Build / CMake, ${{ matrix.compiler }}, ${{ matrix.os }} (gcc, Linux GCC, ubuntu-latest) (push) Waiting to run
				
			Build / CMake, ${{ matrix.compiler }}, ${{ matrix.os }} (llvm, llvm-cov gcov, Linux Clang, ubuntu-latest) (push) Waiting to run
				
			Build / CMake, ${{ matrix.compiler }}, ${{ matrix.os }} (llvm, llvm-cov gcov, MacOS clang, macos-latest) (push) Waiting to run
				
			Build / Test modules (llvm, ubuntu-latest) (push) Waiting to run
				
			Documentation / documentation (push) Waiting to run
				
			
		
			
				
	
	
		
			27 lines
		
	
	
		
			756 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			756 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| if(NOT FTXUI_BUILD_EXAMPLES)
 | |
|   return()
 | |
| endif()
 | |
| 
 | |
| set(EXAMPLES_DIR ${CMAKE_CURRENT_SOURCE_DIR})
 | |
| function(example name)
 | |
|   add_executable(ftxui_example_${name} ${name}.cpp)
 | |
|   target_link_libraries(ftxui_example_${name} PUBLIC ${DIRECTORY_LIB})
 | |
|   file(RELATIVE_PATH dir ${EXAMPLES_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
 | |
|   set_property(GLOBAL APPEND PROPERTY FTXUI::EXAMPLES ${dir}/${name})
 | |
|   target_compile_features(ftxui_example_${name} PRIVATE cxx_std_20)
 | |
| endfunction(example)
 | |
| 
 | |
| add_subdirectory(component)
 | |
| add_subdirectory(dom)
 | |
| 
 | |
| if (EMSCRIPTEN)
 | |
|   get_property(EXAMPLES GLOBAL PROPERTY FTXUI::EXAMPLES)
 | |
|   foreach(file
 | |
|       "index.html"
 | |
|       "index.mjs"
 | |
|       "index.css"
 | |
|       "run_webassembly.py")
 | |
|     configure_file(${file} ${file})
 | |
|   endforeach(file)
 | |
| endif()
 |