1
0
mirror of https://github.com/sendyne/cppreg.git synced 2025-05-09 15:14:05 +00:00

Update CMake install directives

This commit is contained in:
Nicolas Clauvelin 2022-01-27 14:59:12 -05:00
parent eb166f16e2
commit 42bd134067

View File

@ -2,7 +2,7 @@
# cppreg library CMake script # cppreg library CMake script
# #
# Nicolas Clauvelin (nclauvelin@sendyne.com) # Nicolas Clauvelin (nclauvelin@sendyne.com)
# Sendyne Corp., 2017 # Sendyne Corp., 2022
# #
# -------------------------------------------------------------------------- # # -------------------------------------------------------------------------- #
@ -51,6 +51,10 @@ set_property(TARGET cppreg
# --- Install directives --- # --- Install directives ---
install(FILES ${cppreg_headers} DESTINATION include/cppreg) set(include_dest "include/cppreg")
install(TARGETS cppreg DESTINATION lib EXPORT cppreg-target)
install(EXPORT cppreg-target DESTINATION include/cppreg) install(FILES ${cppreg_headers} DESTINATION ${include_dest})
install(TARGETS cppreg DESTINATION lib EXPORT cppreg-cmake)
install(EXPORT cppreg-cmake
DESTINATION ${include_dest}
NAMESPACE cppreg::)