mirror of
https://github.com/conan-io/conan-center-index.git
synced 2025-09-30 02:05:49 +00:00

* Add cyclonedds-cxx recipe * Streamline * remove conan v1 vars * Tweak * Add 0.10.4 * Require cyclonedds * Add find_package * Use transitive headers * Update src folder * Set minimum conan version to >=1.61.0 * Require cxx17 for test package * Handle cross-compilation * Try to handle win32 dll scenario * Help find dll * Wrong function call * Mark message as debug * Appease the linting gods * Add m to system_libs * Remove older versions * Tweak recipe with review feedback * Document transitive_header reasoning * Refactor code generation support and use CMakeDeps to include cycloneidlcxx lib * Use default paths as well * Tweak search path * Refactor generate script * Add builddirs * Revert back to cmake 3.16+ * Removed unused export_conan_data
28 lines
838 B
Python
28 lines
838 B
Python
import os
|
|
from conan import ConanFile
|
|
from conan.tools.cmake import CMake, cmake_layout
|
|
from conan.tools.build import can_run
|
|
|
|
class CycloneDDSCXXTestConan(ConanFile):
|
|
settings = "os", "compiler", "build_type", "arch"
|
|
generators = "CMakeToolchain", "CMakeDeps", "VirtualRunEnv"
|
|
test_type = "explicit"
|
|
|
|
def layout(self):
|
|
cmake_layout(self)
|
|
|
|
def requirements(self):
|
|
self.requires(self.tested_reference_str)
|
|
|
|
def build(self):
|
|
cmake = CMake(self)
|
|
cmake.configure()
|
|
cmake.build()
|
|
|
|
def test(self):
|
|
if can_run(self):
|
|
bin_path = os.path.join(self.cpp.build.bindirs[0], "test_package")
|
|
self.run(bin_path, env="conanrun")
|
|
bin_path = os.path.join(self.cpp.build.bindirs[0], "test_message")
|
|
self.run(bin_path, env="conanrun")
|