mirror of
https://github.com/tradecatlabs/vibe-coding-cn.git
synced 2026-08-22 23:38:05 +00:00
chore: migrate repository to standard knowledge base layout
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Find devstat, the Device Statistics Library
|
||||
#
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "MidnightBSD")
|
||||
find_path(devstat_INCLUDE_DIR NAMES devstat.h)
|
||||
find_library(devstat_LIBRARY NAMES devstat)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(devstat REQUIRED_VARS devstat_LIBRARY devstat_INCLUDE_DIR)
|
||||
|
||||
if(devstat_FOUND AND NOT TARGET devstat::devstat)
|
||||
add_library(devstat::devstat UNKNOWN IMPORTED)
|
||||
set_target_properties(devstat::devstat PROPERTIES
|
||||
IMPORTED_LOCATION "${devstat_LIBRARY}"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${devstat_INCLUDE_DIR}"
|
||||
)
|
||||
endif()
|
||||
|
||||
mark_as_advanced(devstat_INCLUDE_DIR devstat_LIBRARY)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user