Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
pistache
Commits
d2207e6b
Unverified
Commit
d2207e6b
authored
Apr 02, 2021
by
Andrea Pappacoda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CMake pkg-config example
Fixes #877
parent
9dc080b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
README.md
README.md
+4
-4
No files found.
README.md
View file @
d2207e6b
...
...
@@ -147,14 +147,14 @@ dependencies: dependency('pistache', fallback ['pistache', 'pistache_static_dep'
To use with a CMake build environment, use the
[
FindPkgConfig
](
https://cmake.org/cmake/help/latest/module/FindPkgConfig.html
)
module. Here is an example:
```
cmake
cmake_minimum_required
(
3.4 FATAL_ERROR
)
cmake_minimum_required
(
VERSION 3.6
)
project
(
"MyPistacheProject"
)
# Find the library.
find_package
(
Pistache 0.0.2 REQUIRED
)
find_package
(
PkgConfig
)
pkg_check_modules
(
Pistache REQUIRED IMPORTED_TARGET pistache
)
add_executable
(
${
PROJECT_NAME
}
main.cpp
)
target_link_libraries
(
${
PROJECT_NAME
}
pistache_shared
)
target_link_libraries
(
${
PROJECT_NAME
}
PkgConfig::Pistache
)
```
### Makefile
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment