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

Feature/export config package #82

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

ClausKlein
Copy link

@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.

CMakeLists.txt Outdated
Comment on lines 44 to 45
add_library(beman_optional26 INTERFACE)
add_library(Beman::Optional26::beman_optional26 ALIAS beman_optional26)
Copy link
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
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!

CMakeLists.txt Show resolved Hide resolved
@neatudarius neatudarius self-assigned this Dec 12, 2024
@@ -59,23 +69,24 @@ add_subdirectory(include/beman/optional26)

add_subdirectory(examples)
Copy link
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 ...)

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