-
Notifications
You must be signed in to change notification settings - Fork 116
Add fortran tests and clean cmake #226
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
Conversation
Codecov ReportBase: 93.34% // Head: 93.34% // No change to project coverage 👍
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more 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 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 toPython3
for 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_LIBS
to 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 muchFindPython3
for better compatibility with RPM packagingCloses #225, #122