diff options
Diffstat (limited to 'cmake/libev.cmake')
-rw-r--r-- | cmake/libev.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/libev.cmake b/cmake/libev.cmake new file mode 100644 index 00000000000..5905175f577 --- /dev/null +++ b/cmake/libev.cmake @@ -0,0 +1,10 @@ +if(SHARED_LIBEV) + find_library(LIBEV_LIBRARY NAMES ev) + find_path(LIBEV_INCLUDE_DIR ev.h + PATH_SUFFIXES include/ev include + ) # Find header + find_package_handle_standard_args(libev DEFAULT_MSG LIBEV_LIBRARY LIBEV_INCLUDE_DIR) +else() + add_subdirectory(deps/libev) + set(LIBEV_INCLUDE_DIR deps/libev) +endif() |