cmake: add export rules

This commit is contained in:
Alexandre Bouvier 2022-11-24 22:35:30 +00:00 committed by merry
parent ff4d788617
commit a75c1144e4

View file

@ -85,3 +85,12 @@ if (MASTER_PROJECT)
target_compile_options(oaknut-tests PRIVATE -Wall -Wextra -Wcast-qual -pedantic -pedantic-errors -Wfatal-errors -Wno-missing-braces)
endif()
endif()
# Export
include(GNUInstallDirs)
install(TARGETS oaknut EXPORT oaknutTargets)
install(EXPORT oaknutTargets
NAMESPACE merry::
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/oaknut"
)