@@ -34,7 +34,7 @@ class libhal_conan(ConanFile):
3434 "peripherals and devices using modern C++" )
3535 topics = ("peripherals" , "hardware" , "abstraction" , "devices" , "hal" )
3636 settings = "compiler" , "build_type" , "os" , "arch"
37- exports_sources = "include/*" , "tests/*" , "LICENSE"
37+ exports_sources = "include/*" , "tests/*" , "CMakeLists.txt" , " LICENSE"
3838 generators = "CMakeToolchain" , "CMakeDeps"
3939 no_copy_source = True
4040
@@ -60,25 +60,20 @@ def validate(self):
6060
6161 def build_requirements (self ):
6262 self .tool_requires ("cmake/3.27.1" )
63+ self .tool_requires ("libhal-cmake-util/1.2.0" )
64+ self .test_requires ("boost-ext-ut/1.1.9" )
6365
6466 def requirements (self ):
6567 self .requires ("tl-function-ref/1.0.0" )
6668 self .requires ("boost-leaf/1.81.0" )
67- self .test_requires ("boost-ext-ut/1.1.9" )
6869
6970 def layout (self ):
7071 cmake_layout (self )
7172
7273 def build (self ):
73- if not self .conf .get ("tools.build:skip_test" , default = False ):
74- cmake = CMake (self )
75- if self .settings .os == "Windows" :
76- cmake .configure (build_script_folder = "tests" )
77- else :
78- cmake .configure (build_script_folder = "tests" ,
79- variables = {"ENABLE_ASAN" : True })
80- cmake .build ()
81- self .run (os .path .join (self .cpp .build .bindir , "unit_test" ))
74+ cmake = CMake (self )
75+ cmake .configure ()
76+ cmake .build ()
8277
8378 def package (self ):
8479 copy (self , "LICENSE" , dst = os .path .join (
0 commit comments