forked from LBNL-ETA/Windows-CalcEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Christoph Maurer edited this page Mar 11, 2024
·
16 revisions
Getting started
# Inspired by https://cmake.org/cmake/help/latest/guide/tutorial/A%20Basic%20Starting%20Point.html
# Install tools to develop C++ code
sudo apt-get update
sudo apt-get install build-essential cmake
# Install some dependencies of Ceres Solver
# See http://ceres-solver.org/installation.html#linux
sudo apt-get install libatlas-base-dev # Use ATLAS for BLAS & LAPACK
# Create a build directory
mkdir ./build
# Configure the project and generate a native build system
cmake -S . -B ./build
# Call that build system to compile and link the project
cmake --build ./build
# Run Tarcog tests regarding forced ventilation
./build/src/Tarcog/Tarcog_tests --gtest_filter="*Ventilated*"
Change existing tests. Then run
# Rebuild Tarcog tests
make --file=./build/src/Tarcog/Makefile Tarcog_tests/fast
# Rerun tests (same command as above)
./build/src/Tarcog/Tarcog_tests --gtest_filter="*Ventilated*"
Change implementation and/or add another test, run
# Configure the project and generate a native build system
cmake -S . -B ./build
# Call that build system to compile and link the project
cmake --build ./build
# Rebuild Tarcog tests
make --file=./build/src/Tarcog/Makefile Tarcog_tests/fast
# Rerun tests (same command as above)
./build/src/Tarcog/Tarcog_tests --gtest_filter="*Ventilated*"
If cmake .. fails and additional information is needed for debugging, then run
cmake -Wdev --log-level=TRACE --log-context --debug-output --trace -S . -B ./build
If cmake --build . fails, run
cmake --build ./build -- /verbosity:diagnostic /fl
for additional information.