aocsa / ada-project

cpp template project with conda

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cpp-template-project-cmake

This project is a C++ template project with cmake.

Requirements

The basic requirements for this example is a anaconda enviroment:

Installation on LINUX/UNIX Systems

Download miniconda from

https://docs.conda.io/en/latest/miniconda.html

chmod +x Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
source activate base

Installation the following packages

conda install -c anaconda cmake
conda install -c conda-forge gtest
conda install -c conda-forge gmock
conda install -c hi2p-perim fmt

Note for osx: brew install fmt

Not for windows users: https://github.com/Microsoft/vcpkg

Final details

Note: for users of visual studio code Edit home_user .vscode/c_cpp_properties.json

"/home/home_user/miniconda3/include/"

Build process

./conda/recipes/utecdf/build.sh

run main:

./utecdf_bin

run tests

make test

or

cd /my_project_path/
mkdir build
cd build
cmake ..
make all

About

cpp template project with conda


Languages

Language:CMake 55.5%Language:C++ 40.9%Language:Shell 3.6%