Skip to content

matheusdiogenesandrade/Algencan-c-cpp-cmake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algencan C/C++/CMake setup

Beforehand settings

Make sure to have the environment variable ALGENCAN_LIB properly configured, such as below.

export ALGENCAN_LIB=/opt/algencan/lib/

C

cd c/
gcc -O3 main.c -L${ALGENCAN_LIB} -lalgencan -lgfortran -lm -o algencan
./algencan

C++

cd cpp/
g++ -O3 main.cpp -L${ALGENCAN_LIB} -std=c++20 -lalgencan -lgfortran -lm -o algencanpp
./algencan

CMake

When using CMake, there is no need for setting the environment variable ALGENCAN_LIB, since the FindALGENCAN will load it automatically.

cd cmake/
mkdir build
cd build
cmake ..
make
./main

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published