imcs-compsim / MIRCO

A shared-memory parallel BEM code for the contact of rough surfaces
MIT License
3 stars 3 forks source link

Fix MIRCO installation for other CMake projects #79

Closed RShaw026 closed 1 year ago

RShaw026 commented 1 year ago

This will help other CMake projects to import mirco as a library using find_package(mirco_lib)

Description and Context

This PR fixes the installation of MIRCO to be used by other CMake Projects. Doing make install creates a mirco_libConfig.cmake file in /lib/cmake/mirco/ inside the build directory. Other CMake projects like BACI can directly call find_package(mirco_lib) to use all the targets and includes. It makes mirco::mirco_lib target available that can be linked against the project target.

Related Issues and Pull Requests

How Has This Been Tested?

Compiled together with BACI in my local machine.

Checklist

Additional Information

Interested Parties / Possible Reviewers

@mayrmt