/pthreads-win32-CMake

CMake configuration for building and installing pthreads-win32 as a CMake package

Primary LanguageCMakeThe UnlicenseUnlicense

Requirements

Tested with Clang 12.0.0 and MSVC 19.28.29914.0 on Windows 10.

Building and installing

cmake -B build -G Ninja -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build
cmake --install build

You can now use pthreads-win32 in other CMake projects by using

if(WIN32)
  find_package(pthread REQUIRED)
endif()