-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a80c81a
commit af55d4f
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# * Find liburing Find the liburing library and includes | ||
# | ||
# URING_INCLUDE_DIR - where to find liburing.h, etc. URING_LIBRARIES - List of | ||
# libraries when using uring. URING_FOUND - True if uring found. | ||
|
||
find_path(URING_INCLUDE_DIR liburing.h) | ||
find_library(URING_LIBRARIES uring) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(uring DEFAULT_MSG URING_LIBRARIES | ||
URING_INCLUDE_DIR) | ||
|
||
if(URING_FOUND) | ||
if(NOT TARGET uring) | ||
add_library(uring UNKNOWN IMPORTED) | ||
endif() | ||
set_target_properties( | ||
uring | ||
PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${URING_INCLUDE_DIR}" | ||
IMPORTED_LINK_INTERFACE_LANGUAGES "C" | ||
IMPORTED_LOCATION "${URING_LIBRARIES}") | ||
mark_as_advanced(URING_LIBRARIES) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters