mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +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:
parent
ad441519c3
commit
b828fe16f5
1 changed files with 3 additions and 0 deletions
|
|
@ -47,4 +47,7 @@ if(MAGIC_ENUM_OPT_INSTALL)
|
||||||
|
|
||||||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include
|
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||||
DESTINATION .)
|
DESTINATION .)
|
||||||
|
|
||||||
|
export(EXPORT ${PROJECT_NAME}Config
|
||||||
|
NAMESPACE ${PROJECT_NAME}::)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue