Windows Build Procedure¶
External Dependencies
Boost and Qt are external dependencies that the SDK expects to be installed on the system on which the example code is being built.
- The SDK package has 5 directories. The headers are inside include/, libraries are inside lib/ and bin/ and the cmake modules required for finding and importing dependencies are inside cmake/.
- In order to build the examples provided inside examples/,
cd
into any of the examples directories. - Create a folder called build/ and
cd
into build/. -
To configure the build system run:
cmake -A x64 path/to/source/code
-
To build the example run:
cmake --build .
-
Now the build/ directory should have the built examples as a .exe which you can launch from the command line or double click depending on what you have built.
-
Ensure the CMakeLists.txt file present inside the directory has the path to the SDK directory appended to CMAKE_PREFIX_PATH so that the installed version of cmake on the system is able to locate the cmake modules for finding the dependencies:
list(APPEND CMAKE_PREFIX_PATH "localpath/to/sdk/") find_package(PCoIPSoftClientSDK REQUIRED)
-
At this point, you can link your application to the core library using the CMake command:
target_link_libraries(your_application PRIVATE PCoIPSoftClientSDK:pcoip_core)
-
You can link any other required libraries similarly by appending it to the above command.