
- #CMAKE INSTALL STATIC LIBRARY MAC OS X#
- #CMAKE INSTALL STATIC LIBRARY INSTALL#
- #CMAKE INSTALL STATIC LIBRARY DRIVER#
- #CMAKE INSTALL STATIC LIBRARY FULL#
- #CMAKE INSTALL STATIC LIBRARY DOWNLOAD#
ENABLE-PACKAGES Enable package generation (*) If you have more than one version of Visual Studio (and/or Windows SDK) installed you will be prompted to select which version to use when compiling the driver.įirst you will need to open a “Command Prompt” (or Windows SDK Command Prompt) to execute the batch script.
#CMAKE INSTALL STATIC LIBRARY DOWNLOAD#
The library dependencies will automatically download and build however the following build dependencies will need to be installed.
#CMAKE INSTALL STATIC LIBRARY DRIVER#
The driver has been built and tested using Microsoft Visual Studio 2010, 20 (using the “Express” and Professional versions) and Windows SDK v7.1, 8.0, and 8.1 on Windows 7 SP1.
#CMAKE INSTALL STATIC LIBRARY INSTALL#
Install Dependencies sudo apt-get install libboost1.55-all-dev libssh2-1-devīuilding the Driver with the Tests git clone sudo add-apt-repository ppa:boost-latest/ppa Ubuntu 12.04 does not contain Boost v1.55+ C++ libraries in its repositories however it can be obtained from the Boost PPA which can be found here. Ubuntu Additional Requirements for Ubuntu 12.04 NOTE: CentOS/RHEL 5 has known issues when compiling tests with GCC 4.1.2 as it is not a supported Boost compiler. bootstrap.sh -with-libraries =atomic,chrono,date_time,log,program_options,random,regex,system,thread,test Ensure previous version of Boost has been removed by executing the command sudo yum remove boost* before proceeding. Test Dependencies and Building the Tests ( NOT REQUIRED) Obtaining Test Dependencies CentOS/RHELĬentOS/RHEL does not contain Boost v1.55+ libraries in its repositories however these can be easily installed from source. GCC sudo apt-get install g++ make cmake libuv-dev libssl-devĬlang sudo apt-get install clang make cmake libuv-dev libssl-dev sudo apt-add-repository ppa:linuxjedi/ppa Ubuntu 12.04 does not contain libuv in its repositories however the LinuxJedi PPA has a backport from Ubuntu 14.04 which can be found here. NOTE: The driver utilizes the OpenSSL library included with XCode. The dependencies were obtained using Homebrew. The driver has been built and tested using the Clang compiler provided by XCode 5.1+. *.rpmĭependencies and libuv Installation sudo yum install automake cmake gcc-c++ git libtool openssl-devel wget Install Key and RPM Package sudo rpm -import Download the Appropriate RepoForge Release Package Obtaining Dependencies CentOS/RHEL Additional Requirements for CentOS/RHEL 5ĬentOS/RHEL 5 does not contain git in its repositories however RepoForge (formerly RPMforge) has a RPM for this dependency. The driver has been built using both Clang (Ubuntu 12.04/14.04 and OS X) and GCC (Linux).

NOTE: Utilizing the default package manager configuration to install dependencies on *nix based operating systems may result in older versions of dependencies being installed.
#CMAKE INSTALL STATIC LIBRARY MAC OS X#
Still this was the solution we eventually needed, which is why I wanted to add it here.The driver is known to work on CentOS/RHEL 5/6/7, Mac OS X 10.8/10.9 (Mavericks and Yosemite), Ubuntu 12.04/14.04 LTS, and Windows 7 SP1. Why quotation marks? While this works good, this actually doesn't create a physical, combined library but rather creates a kind of an alias to the set of "sub-libs".

An interface library can then "link" against other libraries and this interface library can, in turn, be "linked" against.
#CMAKE INSTALL STATIC LIBRARY FULL#
With the current CMake versions CMake provides full support for transitive dependencies and interface libraries.

If you intend to modularize the whole add GLOBAL after STATIC IMPORTED to make the imported target globally visible. Target_link_libraries(mainexec combinedLib) The CMakeLists.txt file is to create two libraries and then create a combined library looks like: project(test)ĬOMMAND $)Īdd_dependencies(combinedLib combinedLibGenerator) See Linking static libraries to other static libraries for more info there.Ĭonsider two source files: test1.c: int hi() A combined library must be created, which on Linux can be done with ar. First it's important to recognize that static libraries do not link other static libraries into the code.
