thread_composability_manager/cmake/README.md
Thread Composability Manager (TCM) uses CMake as build system.
Typical CMake workflow can be used: Configure -> Build -> Test -> Pack (Install)
The following project controls are available during the configure stage:
TCM_TEST:BOOL - Enable testing (ON by default)
TCM_STRICT:BOOL - Treat compiler warnings as errors (ON by default)
TCM_PROFILE:STRING - Enable profiling of TCM functionality
Command
cmake <options> <repo_root>
Some useful options:
-G <generator> - specify particular project generator. See cmake --help for details.-DCMAKE_BUILD_TYPE=<type> - specify build type, e.g. RelWithDebInfo, Release, Debug. It is not applicable for multiconfig generators, e.g. for Visual Studio* generator.Command
cmake --build .
or for GNU Makefiles generator
make
Tests are also built if TCM_TEST was not disabled during configuration.
Make sure TCM_TEST option is not disabled during configuration phase and run after build:
ctest --output-on-failure
The project contains installation and packaging instructions.
In order to create portable development package (zip-archive) run:
cpack
Installation can be done using target install:
make install
NOTE
Installation may change your system environment and can't be easily rolled back.
Use CMAKE_INSTALL_PREFIX during configuration phase in order to customize installation folder.