[pthreads]Add usage. (#8651)

* [pthreads]Add usage.

* [pthreads]Update usage: using namespace.

* [pthreads]separate namespace.

* [pthreads]Remove target_include_directories.

* [pthreads]Increase version.
This commit is contained in:
JackBoosY 2019-10-30 14:16:21 +08:00 committed by Victor Romero
parent 19baa0d9b3
commit 0a5b1b7917
2 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Source: pthreads
Version: 3.0.0-3
Version: 3.0.0-4
Homepage: https://sourceware.org/pub/pthreads-win32/
Description: pthreads for windows

9
ports/pthreads/usage Normal file
View File

@ -0,0 +1,9 @@
The package pthreads provides CMake targets:
find_package(pthreads REQUIRED)
target_link_libraries(main PRIVATE PThreads4W::PThreads4W)
#or
target_link_libraries(main PRIVATE PThreads4W::PThreads4W_CXXEXC)
#or
target_link_libraries(main PRIVATE PThreads4W::PThreads4W_STRUCTEXC)