1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00

make the project to be used from a build directory

reference: https://cmake.org/cmake/help/latest/guide/tutorial/index.html#adding-export-configuration-step-11
This commit is contained in:
neargye 2020-11-10 19:13:46 +02:00
parent ad441519c3
commit b828fe16f5

View file

@ -47,4 +47,7 @@ if(MAGIC_ENUM_OPT_INSTALL)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include
DESTINATION .)
export(EXPORT ${PROJECT_NAME}Config
NAMESPACE ${PROJECT_NAME}::)
endif()