feat: added libproc2
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
23d315c4d1
commit
463e4ed570
3 changed files with 10 additions and 1 deletions
|
@ -23,6 +23,12 @@ include(cmake/CPM.cmake)
|
|||
# PackageProject.cmake will be used to make our target installable
|
||||
CPMAddPackage("gh:TheLartians/PackageProject.cmake@1.8.0")
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(LIBPROC2 REQUIRED IMPORTED_TARGET libproc2>=4.0.0)
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(LIBPROC2 REQUIRED IMPORTED_TARGET libproc2>=4.0.0)
|
||||
|
||||
# CPMAddPackage( NAME fmt GIT_TAG 9.1.0 GITHUB_REPOSITORY fmtlib/fmt OPTIONS "FMT_INSTALL YES" # create an installable target )
|
||||
|
||||
# ---- Add source files ----
|
||||
|
@ -57,5 +63,5 @@ packageProject(
|
|||
INCLUDE_DESTINATION include/${PROJECT_NAME}-${PROJECT_VERSION}
|
||||
VERSION_HEADER "${VERSION_HEADER_LOCATION}"
|
||||
COMPATIBILITY SameMajorVersion
|
||||
DEPENDENCIES ""
|
||||
DEPENDENCIES "${LIBPROC2}"
|
||||
)
|
||||
|
|
|
@ -9,3 +9,5 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||
[](https://pre-commit.com/)
|
||||
|
||||
T.B.D.
|
||||
libproc2-dev
|
||||
pkg-config
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
#include <glimpses/glimpses.hpp>
|
||||
#include <libproc2/pids.h>
|
||||
|
||||
using namespace glimpses;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue