|
@@ -33,6 +33,9 @@ class LibOggConan(ConanFile):
|
|
|
def _configure_cmake(self):
|
|
|
cmake = CMake(self)
|
|
|
cmake.definitions["CONAN_SOURCE_LOCATION"] = self.subfolder
|
|
|
+ cmake.definitions["INSTALL_CMAKE_PACKAGE_MODULE"] = False
|
|
|
+ cmake.definitions["INSTALL_DOCS"] = False
|
|
|
+ cmake.definitions["INSTALL_PKG_CONFIG_MODULE"] = False
|
|
|
cmake.configure()
|
|
|
return cmake
|
|
|
|
|
@@ -41,12 +44,10 @@ class LibOggConan(ConanFile):
|
|
|
cmake.build()
|
|
|
|
|
|
def package(self):
|
|
|
- self.copy("*.h", dst="include", src="hello")
|
|
|
- self.copy("*hello.lib", dst="lib", keep_path=False)
|
|
|
- self.copy("*.dll", dst="bin", keep_path=False)
|
|
|
- self.copy("*.so", dst="lib", keep_path=False)
|
|
|
- self.copy("*.dylib", dst="lib", keep_path=False)
|
|
|
- self.copy("*.a", dst="lib", keep_path=False)
|
|
|
+ self.copy("COPYING", src=self.subfolder, dst="licenses",
|
|
|
+ ignore_case=True, keep_path=False)
|
|
|
+ cmake = self._configure_cmake()
|
|
|
+ cmake.install()
|
|
|
|
|
|
def package_info(self):
|
|
|
self.cpp_info.libs = ["hello"]
|