Export to other projects cmake as sol2::sol2

Fix #1304
This commit is contained in:
Alexey Sokolov 2022-09-25 22:27:06 +01:00 committed by The Phantom Derpstorm
parent e5348c29f1
commit 0386513a2d

View File

@ -120,6 +120,7 @@ if(SOL2_ENABLE_INSTALL)
EXPORT sol2)
install(EXPORT sol2
NAMESPACE sol2::
FILE sol2-targets.cmake
DESTINATION "${CMAKE_INSTALL_DATADIR}/cmake/sol2")