Skip to content

Conversation

@stephan-cr
Copy link

@stephan-cr stephan-cr commented Aug 17, 2023

This commit make fff installable, via cmake --install <build-dir> --prefix <some-install-prefix> for example. During installation, imported targets are created, such that users are able to use fff like this:

find_package(fff REQUIRED)

add_executable(some_test some_test.ccp)
target_link_libraries(some_test PRIVATE fff::fff)

This won't affect users who embed fff in their source trees.

Furthermore, if FFF_GENERATE is enable, fff.h is generated into the build folder, instead of overwriting the pre-generated fff.h.

Thank you for your contribution.

Before submitting this PR, please make sure:

  • Your code builds clean without any errors or warnings
  • You are not breaking consistency
  • You have added unit tests (doesn't apply)
  • All tests and other checks pass

This commit make fff installable, via `cmake --install <build-dir>
--prefix <some-install-prefix>` for example.  During installation,
imported targets are created, such that users are able to fff like
this:

```cmake
find_package(fff REQUIRED)

add_executable(some_test some_test.ccp)
target_link_libraries(some_test PRIVATE fff::fff)
´´´

This won't affect users who embed fff in their source trees,

Furthermore, if `FFF_GENERATE` is enable, fff.h is generated into the
build folder, instead of overwriting the pre-generated fff.h.
@stephan-cr
Copy link
Author

Not sure if you like the approach, but let me know.

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.

1 participant