Skip to content

Building the SDK for macOS

This section includes instructions for building and packaging the SDK for macOS systems as discussed next:

  1. Open a Terminal window and change directory to the root of the unzipped SDK package.
  2. Copy the SDK files to the appropriate locations.
  3. The CMake modules for finding the libraries within the package are located inside /usr/lib/pcoip-client/cmake. The required libraries are namespaced by PCoIPSoftClientSDK.
  4. To use the core APIs use the following commands on your applications CMake file for linking your application to the libraries that are needed from the SDK.

list(APPEND_CMAKE_PREFIX_PATH " /usr/lib/pcoip-client/cmake")

find_package(PCoIPSoftClientSDK REQUIRED)
5. Use the following command to link your application to the core library using the CMake command:

target_link_libraries(your_application PRIVATE PCoIPSoftClientSDK::pcoip_core )
You can link to any other required libraries similarly by appending it to the above command.