CopperSpice Overview
|
The CsCore library depends on functionality in CsLibGuarded, CsSignal, and the CsString libraries. Files from each of these libraries are embedded in the CopperSpice source code. The files are located in the following CopperSpice directories.
Each library has an exported CMake variable which defines the location where the include files will be installed. This variable can be imported and used from other CMake projects, such as CsCore. The following are the variable names for each library.
The CMake build files have been designed to look for a system version of CsLibGuarded, CsSignal, and CsString when building CsCore. The following rules apply independently to each one of these system libraries.
Rules for which source files to use.
Rules for linking CsCore.
To build CsCore using one of the system libraries you will need to provide a search path to the CMake files located in the install prefix path for that library. You must also set the CMake variable CS_INSTALL_MODE to either Package or Deploy.
For example, after you build and install CsString the files will be located in the CMAKE_INSTALL_PREFIX which was specified in the build files for CsString. In the following CopperSpice CMake configuration script The install prefix for CsString is c/cs_string_lib
.