ladybird/Meta/CMake/lagom_install.cmake
Undefine 731f1678ba Meta: Move install rules to its own helper cmake file
This feels like a thing that belongs somewhere else than the top level
CMakeLists file.
2026-03-29 13:59:11 -06:00

25 lines
743 B
CMake

include_guard()
include(CMakePackageConfigHelpers)
# find_package(<package>) call for consumers to find this project
set(package Lagom CACHE STRING "")
# Allow package maintainers to freely override the path for the configs
set(Lagom_INSTALL_CMAKEDIR "${CMAKE_INSTALL_DATADIR}/${package}"
CACHE PATH "CMake package config location relative to the install prefix")
mark_as_advanced(Lagom_INSTALL_CMAKEDIR)
install(
FILES "${LADYBIRD_SOURCE_DIR}/Meta/CMake/lagom-install-config.cmake"
DESTINATION "${Lagom_INSTALL_CMAKEDIR}"
RENAME "${package}Config.cmake"
COMPONENT Lagom_Development
)
install(
EXPORT LagomTargets
NAMESPACE Lagom::
DESTINATION "${Lagom_INSTALL_CMAKEDIR}"
COMPONENT Lagom_Development
)