Add fortran tests and clean cmake#226
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #226 +/- ##
========================================
Coverage 93.34% 93.34%
========================================
Files 15 15
Lines 902 902
========================================
Hits 842 842
Misses 60 60 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
- Move to single shared/static targets defined by `BUILD_SHARED_LIBS=ON/OFF` - Cleanup cmake to use modern standards, e.g. using `target_compile_definitions` - Moved pkg-config template file to cmake folder Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
This will make it possible for external projects to include this library via `FetchContent` and equivalent. Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
990fc8a to
33c0929
Compare
|
Ok, since the last tests failed, I think I will just add the other fixes I had lying around. I'll edit the top comment for more details. |
|
@LecrisUT, do you know the license of |
|
@LecrisUT. Sorry, it seems public domain about source code on Fortran wiki, https://fortranwiki.org/fortran/show/Copyrights. |
|
Yeah, that's what I've found as well. As far as I understand there are no copyright or license restrictions with those. |
@atztogo @lan496
Here is the skeleton for the Fortran tests. Simply print to stdout/stderr and return non-zero for any failed test, and make sure the file name and function are identical.
I have also made a minor fix in the
find_package(Python), switching it toPython3for easier packaging in RPM (waiting on scikit-build/scikit-build#834 to finish that).You should have write access to my branch, so feel free to just push commits on top of it.
Edit: Previous tests had some issues with sanitizer flags, which I had cleaned up in a separate branch, so I decided to just add these ones in as well. So all together this PR does:
spglib_SHARED_LIBSto switch between either of those.spglib_WITH_TESTS)rc, and there has been some previous changes to these flags, when I made this project importable, so it shouldn't affect muchFindPython3for better compatibility with RPM packagingCloses #225, #122