Open any link, folder or file. Cross-platform.
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>
Cool::open("https://github.com/CoolLibs/open");
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.