@@ -28,7 +28,7 @@ clean = { cmd = "rm -rf build bin CMakeFiles/" }
28
28
print-env = { cmd = " echo $PATH" }
29
29
30
30
[target .win-64 .tasks ]
31
- prepare = " cmake -G 'Visual Studio 17 2022' -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo"
31
+ prepare = " cmake -G 'Visual Studio 17 2022' -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DRERUN_FIND_PACKAGE:BOOL=OFF "
32
32
build = { cmd = " cmake --build build --config RelWithDebInfo" , depends_on = [
33
33
" prepare" ,
34
34
] }
@@ -37,13 +37,33 @@ example = { cmd = "build/RelWithDebInfo/rerun_ext_example.exe", depends_on = [
37
37
] }
38
38
39
39
[target .unix .tasks ]
40
- prepare = " cmake -G 'Ninja' -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo"
40
+ prepare = " cmake -G 'Ninja' -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DRERUN_FIND_PACKAGE:BOOL=OFF "
41
41
build = { cmd = " cmake --build build --config RelWithDebInfo --target all" , depends_on = [
42
42
" prepare" ,
43
43
] }
44
44
example = { cmd = " build/rerun_ext_example" , depends_on = [" build" ] }
45
45
format = { cmd = " clang-format -i src/*" }
46
46
47
+ [feature .rerunfindpackage .target .win-64 .tasks ]
48
+ prepare = " cmake -G 'Visual Studio 17 2022' -B buildrerunfindpackage -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DRERUN_FIND_PACKAGE:BOOL=ON"
49
+ build = { cmd = " cmake --build buildrerunfindpackage --config RelWithDebInfo" , depends_on = [
50
+ " prepare" ,
51
+ ] }
52
+ example = { cmd = " buildrerunfindpackage/RelWithDebInfo/rerun_ext_example.exe" , depends_on = [
53
+ " build" ,
54
+ ] }
55
+
56
+ [feature .rerunfindpackage .target .unix .tasks ]
57
+ prepare = " cmake -G 'Ninja' -B buildrerunfindpackage -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DRERUN_FIND_PACKAGE:BOOL=ON"
58
+ build = { cmd = " cmake --build buildrerunfindpackage --config RelWithDebInfo --target all" , depends_on = [
59
+ " prepare" ,
60
+ ] }
61
+ example = { cmd = " buildrerunfindpackage/rerun_ext_example" , depends_on = [
62
+ " build" ,
63
+ ] }
64
+ format = { cmd = " clang-format -i src/*" }
65
+
66
+
47
67
[dependencies ]
48
68
# Build tools:
49
69
clang-tools = " >=15,<16" # clang-format
@@ -63,3 +83,12 @@ ninja = "1.11.1"
63
83
[target .win-64 .dependencies ]
64
84
# Build tools:
65
85
vs2022_win-64 = " 19.37.32822"
86
+
87
+ [feature .rerunfindpackage .dependencies ]
88
+ librerun-sdk = " 0.17.0.*"
89
+
90
+ [environments ]
91
+ default = { solve-group = " defaultgroup" }
92
+ rerunfindpackage = { features = [
93
+ " rerunfindpackage" ,
94
+ ], solve-group = " defaultgroup" }
0 commit comments