cmake magick to make package usable and discoverable by another CMake projects, readme, pkgbuild

This commit is contained in:
Blue 2023-03-22 19:30:41 +03:00
parent 7377f13534
commit f5612dc3c5
Signed by: blue
GPG key ID: 9B203B252A63EE38
6 changed files with 161 additions and 22 deletions

View file

@ -29,9 +29,9 @@ set(HEADERS
operators.hpp
)
target_sources(lmdbal PRIVATE
target_sources(${PROJECT_NAME} PRIVATE
${SOURCES}
${HEADERS}
)
set_target_properties(lmdbal PROPERTIES PUBLIC_HEADER "${HEADERS}")
install(FILES ${HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_LOW})