diff options
author | Marcel Metz <[email protected]> | 2017-03-04 22:15:12 +0100 |
---|---|---|
committer | Marcel Metz <[email protected]> | 2017-03-05 00:14:49 +0100 |
commit | df87cf8002ace806879ef3646543d7f4037ba52e (patch) | |
tree | 9d046632ef90d7d3520e436ffc26be55651d6902 /CMakeLists.txt | |
parent | 27be429ca4b89fc23034c83a11ebcf963c36ba26 (diff) |
Export cmake import targets for project install tree
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 345ede2e..e0f349b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1325,11 +1325,16 @@ ENDIF() IF(ALSOFT_INSTALL) # Add an install target here - INSTALL(TARGETS OpenAL + INSTALL(TARGETS OpenAL EXPORT OpenAL RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ) + INSTALL(EXPORT OpenAL + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/OpenAL + NAMESPACE OpenAL:: + FILE OpenALConfig.cmake) INSTALL(FILES include/AL/al.h include/AL/alc.h include/AL/alext.h |