Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fancier CMake config file #31

Open
jacobwilliams opened this issue Jul 29, 2017 · 2 comments
Open

Fancier CMake config file #31

jacobwilliams opened this issue Jul 29, 2017 · 2 comments

Comments

@jacobwilliams
Copy link
Owner

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

@jacobwilliams
Copy link
Owner Author

@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.

@japaf
Copy link

japaf commented Sep 24, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants