![cmake install library cmake install library](https://preshing.com/images/cmake-gui-options.png)
Cmake install library windows#
However, that does not seem to be working correctly for Windows builds. The second if statement in the CMakeLists.txt file copies these libraries from the installation location to the executable location to satisfy this. Choose directory where cmakelib will be stored. Library is stored on User computer and the global CMake variable CMLIBDIR must be defined. However it is possible use cmakelib as submodule but it is not recommanded.
![cmake install library cmake install library](https://user-images.githubusercontent.com/9855832/38770883-713d8f24-3fce-11e8-8061-09f542e660db.png)
We have a project here that needs to install a certain shared library to multiple components, so that it is available to the components that use that library regardless of installer component selection. We provide binary distributions of all headers, libraries and CMake configuration files required to depend on PyTorch. It is intended that the user has only one global instance of library.