Skip to content

Commit

Permalink
Enable importing cmake targets from the build tree (#39, thanks @fbdt…
Browse files Browse the repository at this point in the history
  • Loading branch information
fbdtemme authored Dec 27, 2020
1 parent 076e96f commit 4b3117e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,10 @@ install(
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
)

export(
EXPORT ${package_target}
NAMESPACE ${package_nspace}::
FILE "${CMAKE_CURRENT_BINARY_DIR}/${package_name}-targets.cmake"
)

# end of file

0 comments on commit 4b3117e

Please sign in to comment.