nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

no-deps.patch (2093B)


      1 diff --git i/CMakeLists.txt w/CMakeLists.txt
      2 index 835401e..1a81954 100644
      3 --- i/CMakeLists.txt
      4 +++ w/CMakeLists.txt
      5 @@ -1,46 +1,15 @@
      6  cmake_minimum_required (VERSION 3.11)
      7  
      8 -# Dependencies -----------------------------------------------------------------
      9 -
     10 -include(FetchContent)
     11 -set(FETCHCONTENT_UPDATES_DISCONNECTED TRUE)
     12 -set(FETCHCONTENT_QUIET FALSE)
     13 -
     14 -FetchContent_Declare(ftxui
     15 -  GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui
     16 -  GIT_TAG 382205c05732a420a300e990218653b1c3ac0fc9
     17 -  GIT_PROGRESS TRUE
     18 -  GIT_SHALLOW FALSE
     19 -)
     20 -
     21 -FetchContent_Declare(json
     22 -  URL https://github.com/nlohmann/json/releases/download/v3.10.5/json-3.10.5.tar.xz
     23 -)
     24 -
     25 -FetchContent_Declare(args
     26 -  GIT_REPOSITORY https://github.com/Taywee/args
     27 -  GIT_TAG a48e1f880813b367d2354963a58dedbf2b708584
     28 -  GIT_PROGRESS TRUE
     29 -  GIT_SHALLOW FALSE
     30 +project(json-tui
     31 +  LANGUAGES CXX
     32 +  VERSION 1.3.0
     33  )
     34  
     35 -FetchContent_GetProperties(ftxui)
     36 -if(NOT ftxui_POPULATED)
     37 -  FetchContent_Populate(ftxui)
     38 -  add_subdirectory(${ftxui_SOURCE_DIR} ${ftxui_BINARY_DIR} EXCLUDE_FROM_ALL)
     39 -endif()
     40 -
     41 -FetchContent_GetProperties(json)
     42 -if(NOT json_POPULATED)
     43 -  FetchContent_Populate(json)
     44 -  add_subdirectory(${json_SOURCE_DIR} ${json_BINARY_DIR} EXCLUDE_FROM_ALL)
     45 -endif()
     46 +# Dependencies -----------------------------------------------------------------
     47  
     48 -FetchContent_GetProperties(args)
     49 -if(NOT args_POPULATED)
     50 -  FetchContent_Populate(args)
     51 -  add_subdirectory(${args_SOURCE_DIR} ${args_BINARY_DIR} EXCLUDE_FROM_ALL)
     52 -endif()
     53 +find_package(ftxui REQUIRED)
     54 +find_package(nlohmann_json REQUIRED)
     55 +find_package(args REQUIRED)
     56  
     57  # Build ------------------------------------------------------------------------
     58  
     59 @@ -49,11 +18,6 @@ configure_file(
     60    ${CMAKE_CURRENT_BINARY_DIR}/src/version.hpp
     61  )
     62  
     63 -project(json-tui
     64 -  LANGUAGES CXX
     65 -  VERSION 1.3.0
     66 -)
     67 -
     68  add_executable(json-tui
     69    src/main.cpp
     70    src/mytoggle.cpp
     71 @@ -70,7 +34,7 @@ target_link_libraries(json-tui
     72    PRIVATE ftxui::screen
     73    PRIVATE ftxui::dom
     74    PRIVATE ftxui::component
     75 -  PRIVATE args
     76 +#  PRIVATE args
     77    PRIVATE nlohmann_json::nlohmann_json
     78  )
     79