Skip to content

Instantly share code, notes, and snippets.

View randrej's full-sized avatar

Andrej Radović randrej

View GitHub Profile
@randrej
randrej / FindLibFsWatch.cmake
Last active June 30, 2022 19:09
AUR fswatch CMake find module
# - Try to find LibFswatch
# Once done this will define
# LibFsWatch_FOUND - System has LibFswatch
# LibFsWatch_INCLUDE_DIRS - The LibFswatch include directories
# LibFsWatch_LIBRARIES - The libraries needed to use LibFswatch
# LibFsWatch_DEFINITIONS - Compiler switches required for using LibFswatch
find_package(PkgConfig)
pkg_check_modules(PC_LIBFSWATCH QUIET libfswatch)
set(LibFsWatch_DEFINITIONS ${PC_LIBFSWATCH_CFLAGS_OTHER})