Compare commits
1 commit
develop
...
feature/li
Author | SHA1 | Date | |
---|---|---|---|
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
|
# PackageProject.cmake will be used to make our target installable
|
||||||
CPMAddPackage("gh:TheLartians/PackageProject.cmake@1.8.0")
|
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 )
|
# CPMAddPackage( NAME fmt GIT_TAG 9.1.0 GITHUB_REPOSITORY fmtlib/fmt OPTIONS "FMT_INSTALL YES" # create an installable target )
|
||||||
|
|
||||||
# ---- Add source files ----
|
# ---- Add source files ----
|
||||||
|
@ -57,5 +63,5 @@ packageProject(
|
||||||
INCLUDE_DESTINATION include/${PROJECT_NAME}-${PROJECT_VERSION}
|
INCLUDE_DESTINATION include/${PROJECT_NAME}-${PROJECT_VERSION}
|
||||||
VERSION_HEADER "${VERSION_HEADER_LOCATION}"
|
VERSION_HEADER "${VERSION_HEADER_LOCATION}"
|
||||||
COMPATIBILITY SameMajorVersion
|
COMPATIBILITY SameMajorVersion
|
||||||
DEPENDENCIES ""
|
DEPENDENCIES "${LIBPROC2}"
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,3 +9,5 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
[](https://pre-commit.com/)
|
[](https://pre-commit.com/)
|
||||||
|
|
||||||
T.B.D.
|
T.B.D.
|
||||||
|
libproc2-dev
|
||||||
|
pkg-config
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
#include <glimpses/glimpses.hpp>
|
#include <glimpses/glimpses.hpp>
|
||||||
|
#include <libproc2/pids.h>
|
||||||
|
|
||||||
using namespace glimpses;
|
using namespace glimpses;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue