Testing a modern way to do C++, Fortran, CMake etc.
I'm trying to emulate a large multi-file project, with external dependencies, to learn how CMake put all together.
The main purpose is scientific applications, so I'll use some matrix operations, complex algebra, and externalize these is some smart way, like JSON.
Some external libraries to test are LAPACK, Boost and Eigen.
- Configure the Cmake file, considering
- Clone the project and enter the project folder
mkdir build
cd build
cmake ..
cmake --make .
- Follow the recommendation in https://cmake.org/cmake/help/book/mastering-cmake/chapter/Cross%20Compiling%20With%20CMake.html
- After
cd build
, configure withcmake -DCMAKE_TOOLCHAIN_FILE=~/TC-mingw.cmake ..