Skip to content

CoolLibs/open

Repository files navigation

open

Open any link, folder or file. Cross-platform.

Including

To add this library to your project, simply add these two lines to your CMakeLists.txt:

add_subdirectory(path/to/open)
target_link_libraries(${PROJECT_NAME} PRIVATE Cool::open)

Then include it as:

#include <open/open.hpp>

Example

Cool::open("https://github.com/CoolLibs/open");

Running the tests

Simply use "tests/CMakeLists.txt" to generate a project, then run it.

Detailed steps for VSCode:

  • Go to Settings (CTRL + ,), select Workspace, search for "Source Directory" and set it as ${workspaceFolder}/tests.
  • Reload the window (CTRL + SHIFT + P and search for "Reload Window").
  • Delete the CMake cache (CTRL + SHIFT + P and search for "Delete cache and reconfigure").
  • Then the CMake extension should pick it up and you can run the tests as usual with the triangle icon.

About

Open any link, folder or file. Cross-platform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published