|
cleanCppProject
0.2.0
|
This is a empty frame for project in C++. It should help to start a new project without caring much about project/build environment setup.
Do not forget to change name of example binary in source/CMakeLists.txt and test/CMakeLists.txt.
sudo pacman -S cmake g++ graphviz git clang clang-tools-extra cppcheck java-runtime-commonsudo apt-get install cmake g++ graphviz plantuml git clang clang-tidy clang-formatTwo ways, which were tested:
pacman -S cmake g++ gitpacman -S clang mingw-w64-x86_64-clang-tools-extra mingw-w64-x86_64-clang-analyzer doxygenc:\Program Files\Graphviz, so scripts can find it) and add its bin subdirectory to PATH, install java (have it on PATH), download PlantUML jar file and have it on PATH.Standard Makefiles:
Ninja build witch clang, build all+doc and install it to dist folder:
On windows you should prefer Ninja since it is much faster than make (but has no color in shell).
With gcc:
First you may wan to change project name in main CMakeLists.txt. Just go to the folder with the project and create new directory and create project files with this:
and you can now open a .sln file with Visual Studio. You need to right click on executable target and Set as StartUp project. To really see the console window you want to do Start without debugging, since when run in debug mode only, console widow is closed too fast.
Note: Availability of some targets depends on availability certain executables (e.g. clang-format for format target)
-DCMAKE_INSTALL_PREFIX= - location for installation-DVERSION_HOST= - build machine name, see Version::getVersionLong-DCMAKE_BUILD_TYPE=RelWithDebInfo - for build typeCopyright (c) 2016 Kracejic
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1.8.11