Skip to content

Updating CMakeLists.txt#315

Merged
landinjm merged 14 commits intoprisms-center:masterfrom
landinjm:unit_tests
Nov 19, 2024
Merged

Updating CMakeLists.txt#315
landinjm merged 14 commits intoprisms-center:masterfrom
landinjm:unit_tests

Conversation

@landinjm
Copy link
Copy Markdown
Contributor

@landinjm landinjm commented Nov 18, 2024

Updating the CMakeLists.txt to be more understandable and modular.

I've adapted the one used by ASPECT which is much more helpful in terms of error handling. For example, it will warn if the dependencies are not installed or if there is a leftover CMakeCache.txt

This PR also adds Catch2 for unit testing in catch.hpp

@landinjm
Copy link
Copy Markdown
Contributor Author

Closes #296

@landinjm
Copy link
Copy Markdown
Contributor Author

Note that this does change the behavior in how executable files are generated. Before, you would run make release or make debug to generate main.exe. Now, running make generates main-release.exe and main-debug.exe. The user can then choose which one to use.

@landinjm
Copy link
Copy Markdown
Contributor Author

Partially addresses #314

Comment thread .gitignore
Copy link
Copy Markdown
Contributor

@fractalsbyx fractalsbyx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, so much better!

@landinjm landinjm merged commit 6bcfda8 into prisms-center:master Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants