Skip to content

simple hello world like example using cmake with Fortran as programming language.

License

Notifications You must be signed in to change notification settings

alinelena/hello-cmake-fortran

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello-cmake-fortran

simple hello world like example using cmake with Fortran as programming language.

  • shows usage of optional features: -DWITH_MYMATH=On (default: On)
  • building shared and static libs: -DBUILD_SHARED_LIBS=On (defaut: On)
  • building api documentation with doxygen: -DBUILD_DOCS=On (default: On)
  • generating tests: -DBUILD_TESTING=On (default: On)

build the project

#clone 
git clone https://github.com/alinelena/hello-cmake-fortran.git
pushd hello-cmake-fortran
mkdir -p build
pushd build
cmake ../ 
make 
make install # use -DCMAKE_INSTALL_PREFIX=/path  to control the installation path
make docs
make test
popd 
popd

About

simple hello world like example using cmake with Fortran as programming language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published