ref: e780645120a3bf3e04d4eb6c6c06194ed6505429
parent: 6adac61a1e329e9296754c56f437f6ea9df1fedf
author: Marcus Asteborg <maastebo@microsoft.com>
date: Thu Mar 26 19:13:04 EDT 2020
cmake - add CPack and default to TGZ package Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -336,6 +336,8 @@
endif()
if(OPUS_INSTALL_CMAKE_CONFIG_MODULE)
+ set(CPACK_GENERATOR TGZ)
+ include(CPack)
set(CMAKE_INSTALL_PACKAGEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
install(EXPORT OpusTargets
NAMESPACE Opus::