Skip to content

C++ utilities to prevent your computer from going to sleep

License

Notifications You must be signed in to change notification settings

CoolLibs/no-sleep

Repository files navigation

no_sleep

Including

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

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

Then include it as:

#include <no_sleep/no_sleep.hpp>

Running the tests

Simply use "tests/CMakeLists.txt" to generate a project, then run it.
If you are using VSCode and the CMake extension, this project already contains a .vscode/settings.json that will use the right CMakeLists.txt automatically.

About

C++ utilities to prevent your computer from going to sleep

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published