diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libaio/CMakeLists.txt | |
Diffstat (limited to 'vcpkg/ports/libaio/CMakeLists.txt')
| -rw-r--r-- | vcpkg/ports/libaio/CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/libaio/CMakeLists.txt b/vcpkg/ports/libaio/CMakeLists.txt new file mode 100644 index 0000000..6c64ec0 --- /dev/null +++ b/vcpkg/ports/libaio/CMakeLists.txt @@ -0,0 +1,13 @@ +cmake_minimum_required(VERSION 3.20) +project(libaio C) +include(GNUInstallDirs) +file(GLOB SRC_FILES src/*.c) +add_library(aio ${SRC_FILES}) +target_include_directories(aio PUBLIC "${PROJECT_SOURCE_DIR}/src") +install(TARGETS aio) +install(FILES src/libaio.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") +set(PKG_CONFIG_FILE_NAME "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc") +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig.pc.in" "${PKG_CONFIG_FILE_NAME}" @ONLY) +install(FILES "${PKG_CONFIG_FILE_NAME}" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig" +) |