Changes between Version 3 and Version 4 of CMakeAddingCompiledLibrary
- Timestamp:
- Jun 12, 2007, 4:58:38 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CMakeAddingCompiledLibrary
v3 v4 13 13 This invocation will build several variants of the `boost_libname` library from the source files `mysrc1.cpp` and `mysrc2.cpp`. For example, it will build both static and shared library, single- and multi-threaded, debug and release, etc. This invocation also handles the installation of these libraries. 14 14 15 2. For simple libraries, that's it! Rebuilding via CMake (e.g., running `make` or reloading and rebuilding the Boost project in your IDE) will build the new library, including several different variants for different compilation options. Your Boost library will also be included when the user installs Boost or builds a binary package of Boost. 15 2. For simple libraries, that's it! Rebuilding via CMake (e.g., running `make` or reloading and rebuilding the Boost project in your IDE) will build the new library, including several different variants for different compilation options. Your Boost library will also be included when the user installs Boost or builds a binary package of Boost. Within the CMake configuration, you will also see an option `BUILD_LIBNAME`, which allows the user to decide whether or not to build this Boost library. 16 16 17 17 3. Many libraries will need specific compilation options when building, need to link against other libraries (Boost or otherwise), or rely on certain features of the compilation process to proceed. Follow the instructions in the remaining part of this page to address these library-specific needs.