diff options
Diffstat (limited to 'doc/Development')
-rw-r--r-- | doc/Development/Configuring.asciidoc | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/Development/Configuring.asciidoc b/doc/Development/Configuring.asciidoc new file mode 100644 index 0000000..f436da5 --- /dev/null +++ b/doc/Development/Configuring.asciidoc @@ -0,0 +1,34 @@ +=== CMake + +==== Compiler flags +-pipe -fstack-protector-strong -fno-plt -fPIE +-march=native -mtune=native + +==== Install paths +CMAKE_INSTALL_PREFIX is prepended onto all install paths. This variable defaults +to /usr/local on *nix and c:/Program Files/${PROJECT_NAME} on Windows. + +On *nix you can use DESTDIR to relocate the entire installation. DESTDIR is +prepended to CMAKE_INSTALL_PREFIX. + +This will install the project to /ports/pkg/install/usr: + +[source, sh] +---- +cmake -DCMAKE_INSTALL_PREFIX=/usr ... +... +make DESTDIR=/ports/pkg/install install +---- + +==== clang-tidy +CMAKE_CXX_CLANG_TIDY="clang-tidy;-checks=*" + +==== cppcheck +CMAKE_CXX_CPPCHECK="cppcheck" + +==== ccache +-DCMAKE_CXX_COMPILER_LAUNCHER=ccache + +==== llvm libcpp +CMAKE_CXX_FLAGS: -stdlib=libc++" +CMAKE_EXE_LINKER_FLAGS -stdlib=libc++ |