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

Selective build support for development or deployment #86

Open
svlugt opened this issue Mar 1, 2022 · 2 comments
Open

Selective build support for development or deployment #86

svlugt opened this issue Mar 1, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@svlugt
Copy link

svlugt commented Mar 1, 2022

A build of the repository will give a different result when build as stand-alone (for development and testing) or when included as sub-module. A stand-alone build should build the included examples, where a build of the cudawrappers when included as a sub-module in another project should only build the wrapper library.

@svlugt svlugt added the enhancement New feature or request label Mar 1, 2022
@fdiblen
Copy link
Member

fdiblen commented Mar 2, 2022

We should have a CMake variable to build the examples.

If you build by running:

cmake -DBUILD_EXAMPLES=ON -S . -B build

It will compile the examples otherwise, the examples will not be compiled. This variable should be OFF by default.

@svlugt
Copy link
Author

svlugt commented Mar 3, 2022

Yes, something like that.
I would prefer option(BUILD_TESTING "Build tests" OFF) as done here: https://git.astron.nl/RD/schaapcommon/-/blob/master/CMakeLists.txt#L14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants