Install headers in correct path when using CMake

pkg-config provides users with the include path `../include/r3`
while CMake installs the headers directly under `../include/`.
This corrects the installation path to match the generated r3.pc
and to get the same result as when using autoconf.
This commit is contained in:
Björn Svensson 2023-11-03 09:31:39 +01:00
parent c105117b40
commit 9887545ab0

View file

@ -26,7 +26,7 @@ install(
include/r3_json.h include/r3_json.h
include/str_array.h include/str_array.h
include/r3.hpp include/r3.hpp
DESTINATION include) DESTINATION include/r3)
# Configure substitutions for r3.pc. The variables set here must match the # Configure substitutions for r3.pc. The variables set here must match the
# @<values>@ in r3.pc.in. # @<values>@ in r3.pc.in.