Skip to content

Conversation

@ClausKlein
Copy link
Contributor

@ClausKlein ClausKlein commented Nov 20, 2024

The installed cmake config packages will be checked too if it is usable in another cmake project.

see 73fde6b

steve-downey and others added 3 commits December 6, 2024 21:51
Add the verify headers target to the build presets for each compiler.
@ClausKlein ClausKlein force-pushed the feature/export-config-package branch from db86d5a to 73fde6b Compare December 6, 2024 20:57
@ClausKlein ClausKlein force-pushed the feature/export-config-package branch from 8e074d7 to fb64c34 Compare December 10, 2024 21:21
@coveralls
Copy link

coveralls commented Dec 10, 2024

Coverage Status

coverage: 91.209%. remained the same
when pulling 0505f9c on ClausKlein:feature/export-config-package
into 9e0c8f7 on bemanproject:main.

Comment on lines 44 to 45
add_library(beman_optional26 INTERFACE)
add_library(Beman::Optional26::beman_optional26 ALIAS beman_optional26)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: needs to be consistent with namespace argument install below!

Comment on lines 17 to 41
install(
TARGETS beman_optional26
FILE_SET beman_optional26_headers
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
COMPONENT beman_optional26_development
)

install(
TARGETS beman_optional26
EXPORT beman_optional26_export
DESTINATION
${CMAKE_INSTALL_LIBDIR}
FILE_SET beman_optional26_headers
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
COMPONENT beman_optional26_development
)

install(
EXPORT beman_optional26_export
DESTINATION ${INSTALL_CONFIGDIR}
NAMESPACE Beman::Optional26::
FILE beman_optional26-config-targets.cmake
EXPORT_LINK_INTERFACE_LIBRARIES
COMPONENT beman_optional26_development
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

NOTE: the target name and the namespace name must be constant to the intern used alias and config package name!

@neatudarius neatudarius self-assigned this Dec 12, 2024

add_subdirectory(include/beman/optional26)

add_subdirectory(examples)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: examples should be optional with an option(OPTIONAL26_ENABLE_EXAMLPES ...)

@neatudarius
Copy link
Member

@ClausKlein , are you still working on this PR? seems outdated.

@ClausKlein
Copy link
Contributor Author

It was ready since 2 months?

@ClausKlein ClausKlein closed this Feb 13, 2025
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.

4 participants