Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.06 KB

README.md

File metadata and controls

48 lines (35 loc) · 1.06 KB

Desktop module for saucer


📦 Installation

  • Using CPM

    CPMFindPackage(
      NAME           saucer-desktop
      VERSION        2.0.0
      GIT_REPOSITORY "https://github.com/saucer/desktop"
    )
  • Using FetchContent

    include(FetchContent)
    
    FetchContent_Declare(saucer-desktop GIT_REPOSITORY "https://github.com/saucer/desktop" GIT_TAG v2.0.0)
    FetchContent_MakeAvailable(saucer-desktop)

Finally, link against target:

target_link_libraries(<target> saucer::desktop)

📃 Usage

using saucer::modules::desktop::picker::type;

auto app      = saucer::application::acquire(/*...*/);
auto& desktop = app->add_module<saucer::modules::desktop>();

desktop.open("https://google.com");
auto file = desktop.pick<type::file>({.filters = {"*.cpp"}});