Skip to content

Conversation

@kou
Copy link
Contributor

@kou kou commented Nov 14, 2025

Fix #298

Reduce add_library()s to the following 2 add_library()s:

add_library(nimble)
add_library(nimble_test)

nimble is for Nimble features. nimble_test is for test.

All non test files are sources of nimble.

nimble_test depends on nimble and test related dependencies such as gtest_main. Each test links to nimble_test. Each test doesn't need to link to gtest_main and so on.

This PR doesn't install nimble. I'll work on it in a separated PR.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 14, 2025
@kou
Copy link
Contributor Author

kou commented Nov 14, 2025

@assignUser Could you take a look at this?

Fix facebookincubator#298

Reduce `add_library()`s to the following 2 `add_library()`s:

```cmake
add_library(nimble)
add_library(nimble_test)
```

`nimble` is for Nimble features. `nimble_test` is for
test.

All non test files are sources of `nimble`.

`nimble_test` depends on `nimble` and test related dependencies such
as `gtest_main`. Each test links to `nimble_test`. Each test doesn't
need to link to `gtest_main` and so on.

This PR doesn't install `nimble`. I'll work on it in a separated PR.
@kou kou force-pushed the reduce-add-library branch from 6e9cfd9 to 77d49ce Compare November 14, 2025 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reduce needless add_library()

1 participant