Add ftxui to z3ed cmake
This commit is contained in:
@@ -1,6 +1,20 @@
|
|||||||
|
include(FetchContent)
|
||||||
|
|
||||||
|
FetchContent_Declare(ftxui
|
||||||
|
GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui
|
||||||
|
GIT_TAG v5.0.0
|
||||||
|
)
|
||||||
|
|
||||||
|
FetchContent_GetProperties(ftxui)
|
||||||
|
if(NOT ftxui_POPULATED)
|
||||||
|
FetchContent_Populate(ftxui)
|
||||||
|
add_subdirectory(${ftxui_SOURCE_DIR} ${ftxui_BINARY_DIR} EXCLUDE_FROM_ALL)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_executable(
|
add_executable(
|
||||||
z3ed
|
z3ed
|
||||||
cli/z3ed.cc
|
cli/z3ed.cc
|
||||||
|
cli/tui.cc
|
||||||
cli/handlers/compress.cc
|
cli/handlers/compress.cc
|
||||||
cli/handlers/patch.cc
|
cli/handlers/patch.cc
|
||||||
cli/handlers/tile16_transfer.cc
|
cli/handlers/tile16_transfer.cc
|
||||||
@@ -31,6 +45,9 @@ target_include_directories(
|
|||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
z3ed PUBLIC
|
z3ed PUBLIC
|
||||||
asar-static
|
asar-static
|
||||||
|
ftxui::component
|
||||||
|
ftxui::screen
|
||||||
|
ftxui::dom
|
||||||
${ABSL_TARGETS}
|
${ABSL_TARGETS}
|
||||||
${SDL_TARGETS}
|
${SDL_TARGETS}
|
||||||
${PNG_LIBRARIES}
|
${PNG_LIBRARIES}
|
||||||
@@ -39,4 +56,4 @@ target_link_libraries(
|
|||||||
${CMAKE_DL_LIBS}
|
${CMAKE_DL_LIBS}
|
||||||
ImGuiTestEngine
|
ImGuiTestEngine
|
||||||
ImGui
|
ImGui
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user