no-deps.patch (1781B)
1 diff --git c/CMakeLists.txt i/CMakeLists.txt 2 index 62d14a5..2fe8069 100644 3 --- c/CMakeLists.txt 4 +++ i/CMakeLists.txt 5 @@ -8,49 +8,16 @@ project(json-tui 6 option(JSON_TUI_BUILD_TESTS "Set to ON to build tests" OFF) 7 option(JSON_TUI_CLANG_TIDY "Set to ON to use clang tidy" OFF) 8 9 +project(json-tui 10 + LANGUAGES CXX 11 + VERSION 1.3.0 12 +) 13 + 14 # Dependencies ----------------------------------------------------------------- 15 16 -include(FetchContent) 17 -set(FETCHCONTENT_UPDATES_DISCONNECTED TRUE) 18 -set(FETCHCONTENT_QUIET FALSE) 19 - 20 -FetchContent_Declare(ftxui 21 - GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui 22 - GIT_TAG v6.0.2 23 - GIT_PROGRESS TRUE 24 - GIT_SHALLOW FALSE 25 - EXCLUDE_FROM_ALL 26 - FIND_PACKAGE_ARGS 27 - 6.0.2 28 - NAMES ftxui 29 -) 30 - 31 -FetchContent_Declare(nlohmann_json 32 - URL https://github.com/nlohmann/json/releases/download/v3.12.0/json.tar.xz 33 - EXCLUDE_FROM_ALL 34 - FIND_PACKAGE_ARGS 35 - 3.12.0 # Breaking change nlohmann/json/pull/4517 36 - NAMES nlohmann_json 37 -) 38 - 39 -FetchContent_Declare(args 40 - GIT_REPOSITORY https://github.com/Taywee/args 41 - GIT_TAG 114200a9ad5fe06c8dea76e15d92325695cf3e34 42 - EXCLUDE_FROM_ALL 43 - GIT_PROGRESS TRUE 44 - GIT_SHALLOW FALSE 45 - FIND_PACKAGE_ARGS 46 - 6.4.7 47 - NAMES args 48 -) 49 - 50 -FetchContent_GetProperties(ftxui) 51 -FetchContent_GetProperties(nlohmann_json) 52 -FetchContent_GetProperties(args) 53 - 54 -FetchContent_MakeAvailable(ftxui) 55 -FetchContent_MakeAvailable(nlohmann_json) 56 -FetchContent_MakeAvailable(args) 57 +find_package(ftxui REQUIRED) 58 +find_package(nlohmann_json REQUIRED) 59 +find_package(args REQUIRED) 60 61 # Build ------------------------------------------------------------------------ 62 63 @@ -59,7 +26,6 @@ configure_file( 64 ${CMAKE_CURRENT_BINARY_DIR}/src/version.hpp 65 ) 66 67 - 68 add_library(json-tui-lib 69 src/button.cpp 70 src/button.hpp