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

add WITH_TESTS cmake option and wrap executable build in if statement #43

Merged
merged 2 commits into from May 15, 2024

Conversation

Crghilardi
Copy link
Contributor

Hello, this PR adds a WITH_TESTS option to allow a user to specify if they want the unit test executable compiled or not. The option is ON (build the tests) by default.

I was compiling this locally and only really cared about making a shared library. With this modification, I can now just add a -DWITH_TESTS=OFF flag to my cmake statement to avoid compiling the unit test portion.

@r-barnes r-barnes force-pushed the master branch 2 times, most recently from b602d42 to 9e26461 Compare February 9, 2022 21:39
@r-barnes r-barnes merged commit af40031 into r-barnes:master May 15, 2024
1 of 2 checks passed
@r-barnes
Copy link
Owner

Thanks!

@Crghilardi Crghilardi deleted the add-cmake-tests-option branch May 17, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants