C++: cmake: move the build instruction for the tests in the tests dir

This commit is contained in:
Olivier Goffart 2023-01-16 12:26:56 +01:00 committed by Olivier Goffart
parent 0d23478469
commit 8d0cdc6ec2
4 changed files with 55 additions and 51 deletions

View file

@ -97,7 +97,7 @@ SCENARIO("Value API")
{
REQUIRE(!value.to_image().has_value());
slint::Image image = slint::Image::load_from_path(
SOURCE_DIR "/../../logo/slint-logo-square-light-128x128.png");
SOURCE_DIR "/../../../logo/slint-logo-square-light-128x128.png");
REQUIRE(image.size().width == 128);
value = Value(image);
REQUIRE(value.type() == Value::Type::Image);
@ -308,7 +308,7 @@ SCENARIO("Component Compiler")
SECTION("Compile from path")
{
auto result = compiler.build_from_path(SOURCE_DIR "/tests/test.slint");
auto result = compiler.build_from_path(SOURCE_DIR "/test.slint");
REQUIRE(result.has_value());
}
}