forked from mpusz/mp-units
Runtime test execution added to Conan
This commit is contained in:
@@ -92,7 +92,7 @@ class UnitsConan(ConanFile):
|
||||
cmake = self._configure_cmake()
|
||||
cmake.build()
|
||||
if self._run_tests:
|
||||
self.run("ctest -VV -C %s" % cmake.build_type, run_environment=True)
|
||||
cmake.test()
|
||||
|
||||
def package(self):
|
||||
self.copy(pattern="LICENSE.md", dst="licenses")
|
||||
|
@@ -35,3 +35,7 @@ target_link_libraries(unit_tests_runtime
|
||||
mp::units
|
||||
CONAN_PKG::Catch2
|
||||
)
|
||||
|
||||
include(CTest)
|
||||
include(lib/cmake/Catch2/Catch)
|
||||
catch_discover_tests(unit_tests_runtime)
|
||||
|
Reference in New Issue
Block a user