enhances build files with INSTALL options and fixes Conan
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from conans import ConanFile
|
||||
from conan import ConanFile
|
||||
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout
|
||||
|
||||
class EpanetConan(ConanFile):
|
||||
@@ -33,11 +33,8 @@ class EpanetConan(ConanFile):
|
||||
cmake.build()
|
||||
|
||||
def package(self):
|
||||
self.copy("lib/libepanet2.dylib", "lib", keep_path=False)
|
||||
self.copy("lib/libepanet-output.dylib", "lib", keep_path=False)
|
||||
self.copy("*.h", "include", "include", keep_path=False)
|
||||
self.copy("types.h", "include", "src", keep_path=False)
|
||||
self.copy("hash.h", "include", "src", keep_path=False)
|
||||
cmake = CMake(self)
|
||||
cmake.install()
|
||||
|
||||
def package_info(self):
|
||||
self.cpp_info.libdirs = ["lib"]
|
||||
|
||||
Reference in New Issue
Block a user