bspline-fortran icon indicating copy to clipboard operation
bspline-fortran copied to clipboard

Fancier CMake config file

Open jacobwilliams opened this issue 6 years ago • 2 comments

Update the CMake config file to enable more control of the build.

jacobwilliams avatar Jul 29 '17 14:07 jacobwilliams

@japaf Do you have any interest in contributing your CMake updates to the main branch? We have a basic CMake configuration file now. I see that you also added one in your fork.

jacobwilliams avatar Sep 13 '17 03:09 jacobwilliams

I am no CMake expert. The CMake config in my fork is largely based on https://cmake.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmake_file.

I needed a way to install the library such that it can be found by other CMake projects using find_package(). It installs shared library to <prefix>/lib/bspline, cmake config files to <prefix>/lib/cmake/bspline, .mod files to <prefix>/include/bspline, and pkgconfig files to <prefix>/lib/pkgconfig, where <prefix> is /usr/local by default, but can be overridden during compilation. However, I did not test it on Windows.

If that is something, you are interested in, I can create a pull request.

japaf avatar Sep 24 '17 16:09 japaf