KaruroChori / base-cpp-external

Basic repository to start a C++ projects with some external libraries I like

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Basic repository to have a functional environment to start coding in, tailored to suit my needs. I am not a cmake expert, so I am sure many things might have been a lot cleaner, still, it does work for me so ¯\_(ツ)_/¯.

git submodule update --init --recursive mkdir build cd build cmake -D CMAKE_C_COMPILER=clang-10 -D CMAKE_CXX_COMPILER=clang++-10 -D CMAKE_CXX_FLAGS="-stdlib=libc++" .. make all -j8

You can also use make test to execute all the tests the library comes with, and make doxygen to generate its documentation.

By default cmake does not support any target yet. If you want to generate faster code enable O3 optimizations:

cmake -D CMAKE_C_COMPILER=clang-10 -D CMAKE_CXX_COMPILER=clang++-10 -D CMAKE_CXX_FLAGS="-stdlib=libc++ -O3" ..

  • opt: the external components.
  • src: the actual C++ files to be compiled into the exported library.
  • lua: scripting libraries for lua.
  • apps: C++ subprojects to be compiled and linked based on the exported library.
  • test-suite: C++ sub-projects used to test the library.
  • benchmark-suite: C++ sub-projects used to test performance of the library.
  • scripts: folder with utility scripts.
  • header: .h files for this framework.
  • docs: the documentation of the project.
  • private: temporary storage for uncompleted stuff stored only locally.

About

Basic repository to start a C++ projects with some external libraries I like


Languages

Language:C++ 97.0%Language:C 2.7%Language:CMake 0.3%