diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-21 10:41:08 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-21 10:41:08 +0100 |
commit | 5134bebc19c46e4e07a5ec3af1d3f3d2d17a86dd (patch) | |
tree | 837daf5b5de189d557b6ae8eaed149354a3b5030 /lib | |
parent | 70b1bf50de703330436f2ae9cb103fe33cbb567e (diff) | |
parent | 115d6f50152dc018073345800ca90b85846ebaa9 (diff) |
merge `master` into `loek/scripts`
Diffstat (limited to 'lib')
-rw-r--r-- | lib/whereami/CMakeLists.txt | 38 | ||||
m--------- | lib/whereami/lib | 0 |
2 files changed, 38 insertions, 0 deletions
diff --git a/lib/whereami/CMakeLists.txt b/lib/whereami/CMakeLists.txt new file mode 100644 index 0000000..96d3a23 --- /dev/null +++ b/lib/whereami/CMakeLists.txt @@ -0,0 +1,38 @@ +cmake_minimum_required(VERSION 3.28) +set(CMAKE_C_STANDARD 11) +project(whereami C) + +include(CMakePackageConfigHelpers) + +add_library(whereami SHARED) + +target_include_directories(whereami PRIVATE SYSTEM lib/src) +target_sources(whereami PRIVATE lib/src/whereami.c) + +install( + TARGETS whereami + EXPORT whereamiTargets + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib + RUNTIME DESTINATION lib + INCLUDES DESTINATION include +) +install( + FILES lib/src/whereami.h + DESTINATION include +) +write_basic_package_version_file( + "${CMAKE_CURRENT_BINARY_DIR}/whereami-config-version.cmake" + VERSION 0.0.0 + COMPATIBILITY AnyNewerVersion +) +install( + FILES + "${CMAKE_CURRENT_BINARY_DIR}/whereami-config-version.cmake" + DESTINATION lib/cmake/whereami +) +install( + EXPORT whereamiTargets + FILE whereami-config.cmake + DESTINATION lib/cmake/whereami +) diff --git a/lib/whereami/lib b/lib/whereami/lib new file mode 160000 +Subproject dcb52a058dc14530ba9ae05e4339bd3ddfae0e0 |