Desktop module for saucer
-
Using CPM
CPMFindPackage( NAME saucer-desktop VERSION 1.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 v1.0.0) FetchContent_MakeAvailable(saucer-desktop)
Finally, link against target:
target_link_libraries(<target> saucer::desktop)
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"}});