Skip to content

Commit 364fad5

Browse files
iamsergioSergio Martins
authored andcommitted
cmake: Add presets for external graphviz
It's used by homebrew and vcpkg
1 parent 4565606 commit 364fad5

File tree

2 files changed

+110
-72
lines changed

2 files changed

+110
-72
lines changed

CHANGES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Version 1.1:
5555
* API: Added API for context menu handling (cf. StateMachineView class)
5656
* Build system: Added toolchain files for cross-compiling (QNX, Android, etc.)
5757
* Build system: Enabled compilation with namespaced Qt
58-
* Build system: Allow to build with an internal Graphviz build (-DWITH_INTERNAL_GRAPHVIZ=ON)
58+
* Build system: Allow to build with an external graphviz build (-DWITH_INTERNAL_GRAPHVIZ=ON)
5959
Works on all major platforms (tested on Linux, OS X, Windows)
6060

6161
Version 1.0:

CMakePresets.json

Lines changed: 109 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,111 @@
11
{
2-
"version": 3,
3-
"configurePresets": [
4-
{
5-
"name": "base",
6-
"hidden": true,
7-
"generator": "Ninja",
8-
"cacheVariables": {
9-
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
10-
"BUILD_DOCS": "OFF"
11-
}
12-
},
13-
{
14-
"name": "dev-base",
15-
"description": "dev-base",
16-
"hidden": true,
17-
"inherits": "base",
18-
"binaryDir": "${sourceDir}/build-dev",
19-
"cacheVariables": {
20-
"CMAKE_BUILD_TYPE": "Debug",
21-
"BUILD_TESTS": "ON"
22-
}
23-
},
24-
{
25-
"name": "dev5",
26-
"description": "Qt5 dev build",
27-
"inherits": "dev-base",
28-
"binaryDir": "${sourceDir}/build-dev5",
29-
"cacheVariables": {
30-
"WITH_INTERNAL_GRAPHVIZ": "ON"
31-
}
32-
},
33-
{
34-
"name": "dev6",
35-
"description": "Qt6 dev build",
36-
"inherits": "dev-base",
37-
"binaryDir": "${sourceDir}/build-dev6",
38-
"cacheVariables": {
39-
"BUILD_QT6": "ON",
40-
"WITH_INTERNAL_GRAPHVIZ": "ON"
41-
}
42-
},
43-
{
44-
"name": "rel-base",
45-
"description": "rel-base",
46-
"inherits": "base",
47-
"hidden": true,
48-
"cacheVariables": {
49-
"CMAKE_BUILD_TYPE": "Release",
50-
"BUILD_TESTS": "OFF"
51-
}
52-
},
53-
{
54-
"name": "rel5",
55-
"description": "Qt5 release build",
56-
"inherits": "rel-base",
57-
"binaryDir": "${sourceDir}/build-rel5",
58-
"cacheVariables": {
59-
"WITH_INTERNAL_GRAPHVIZ": "ON"
60-
}
61-
},
62-
{
63-
"name": "rel6",
64-
"description": "Qt6 release build",
65-
"inherits": "rel-base",
66-
"binaryDir": "${sourceDir}/build-rel6",
67-
"cacheVariables": {
68-
"BUILD_QT6": "ON",
69-
"WITH_INTERNAL_GRAPHVIZ": "ON"
70-
}
71-
}
72-
]
2+
"version": 3,
3+
"configurePresets": [
4+
{
5+
"name": "base",
6+
"hidden": true,
7+
"generator": "Ninja",
8+
"cacheVariables": {
9+
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
10+
"BUILD_DOCS": "OFF"
11+
}
12+
},
13+
{
14+
"name": "dev-base",
15+
"description": "dev-base",
16+
"hidden": true,
17+
"inherits": "base",
18+
"binaryDir": "${sourceDir}/build-dev",
19+
"cacheVariables": {
20+
"CMAKE_BUILD_TYPE": "Debug",
21+
"BUILD_TESTS": "ON"
22+
}
23+
},
24+
{
25+
"name": "dev5-external-graphviz",
26+
"description": "Qt5 dev build with external graphviz",
27+
"inherits": "dev-base",
28+
"binaryDir": "${sourceDir}/build-dev5-external-graphviz",
29+
"cacheVariables": {
30+
"WITH_INTERNAL_GRAPHVIZ": "OFF"
31+
}
32+
},
33+
{
34+
"name": "dev5",
35+
"description": "Qt5 dev build",
36+
"inherits": "dev-base",
37+
"binaryDir": "${sourceDir}/build-dev5",
38+
"cacheVariables": {
39+
"WITH_INTERNAL_GRAPHVIZ": "ON"
40+
}
41+
},
42+
{
43+
"name": "dev6-external-graphviz",
44+
"description": "Qt6 dev build with external graphviz",
45+
"inherits": "dev-base",
46+
"binaryDir": "${sourceDir}/build-dev6-external-graphviz",
47+
"cacheVariables": {
48+
"BUILD_QT6": "ON",
49+
"WITH_INTERNAL_GRAPHVIZ": "OFF"
50+
}
51+
},
52+
{
53+
"name": "dev6",
54+
"description": "Qt6 dev build",
55+
"inherits": "dev-base",
56+
"binaryDir": "${sourceDir}/build-dev6",
57+
"cacheVariables": {
58+
"BUILD_QT6": "ON",
59+
"WITH_INTERNAL_GRAPHVIZ": "ON"
60+
}
61+
},
62+
{
63+
"name": "rel-base",
64+
"description": "rel-base",
65+
"inherits": "base",
66+
"hidden": true,
67+
"cacheVariables": {
68+
"CMAKE_BUILD_TYPE": "Release",
69+
"BUILD_TESTS": "OFF"
70+
}
71+
},
72+
{
73+
"name": "rel5-external-graphviz",
74+
"description": "Qt5 release build with external graphviz",
75+
"inherits": "rel-base",
76+
"binaryDir": "${sourceDir}/build-rel5-external-graphviz",
77+
"cacheVariables": {
78+
"WITH_INTERNAL_GRAPHVIZ": "OFF"
79+
}
80+
},
81+
{
82+
"name": "rel5",
83+
"description": "Qt5 release build",
84+
"inherits": "rel-base",
85+
"binaryDir": "${sourceDir}/build-rel5",
86+
"cacheVariables": {
87+
"WITH_INTERNAL_GRAPHVIZ": "ON"
88+
}
89+
},
90+
{
91+
"name": "rel6-external-graphviz",
92+
"description": "Qt6 release build with external graphviz",
93+
"inherits": "rel-base",
94+
"binaryDir": "${sourceDir}/build-rel6-external-graphviz",
95+
"cacheVariables": {
96+
"BUILD_QT6": "ON",
97+
"WITH_INTERNAL_GRAPHVIZ": "OFF"
98+
}
99+
},
100+
{
101+
"name": "rel6",
102+
"description": "Qt6 release build",
103+
"inherits": "rel-base",
104+
"binaryDir": "${sourceDir}/build-rel6",
105+
"cacheVariables": {
106+
"BUILD_QT6": "ON",
107+
"WITH_INTERNAL_GRAPHVIZ": "ON"
108+
}
109+
}
110+
]
73111
}

0 commit comments

Comments
 (0)