|
@@ -46,10 +46,19 @@ class LsStdConan(ConanFile):
|
|
|
shutil.copy(os.path.join(build_lib_src, file), lib_dst)
|
|
|
|
|
|
def package_info(self):
|
|
|
- self.cpp_info.libs = ["ls-std-boxing", "ls-std-core", "ls-std-encoding", "ls-std-event", "ls-std-io", "ls-std-logic", "ls-std-time"]
|
|
|
+ self.cpp_info.libs = ["ls-std-boxing", "ls-std-core", "ls-std-encoding", "ls-std-event", "ls-std-io", "ls-std-time"]
|
|
|
+
|
|
|
+ self.cpp_info.set_property("cmake_file_name", "ls-std")
|
|
|
+ self.cpp_info.set_property("cmake_target_name", "ls-std")
|
|
|
+
|
|
|
+ for lib in self.cpp_info.libs:
|
|
|
+ component = self.cpp_info.components[lib]
|
|
|
+ component.libs = [lib]
|
|
|
+ component.set_property("cmake_target_name", f"ls-std::{lib}")
|
|
|
|
|
|
def generate(self):
|
|
|
tool_chain = CMakeToolchain(self)
|
|
|
+ tool_chain.variables["CMAKE_BUILD_TYPE"] = "Release"
|
|
|
|
|
|
if self.options.shared:
|
|
|
tool_chain.variables['LS_STD_BUILD_STATIC'] = "OFF"
|