+13
-13
lines changedFilter options
+13
-13
lines changed Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ endfunction()
11
11
12
12
# @brief Maybe enable pedantic warnings for a target
13
13
function(maybe_target_pedantic_warnings TARGET_NAME)
14
-
if (BUILD_WITH_PEDANTIC_WARNINGS)
14
+
if (MATPLOTPP_BUILD_WITH_PEDANTIC_WARNINGS)
15
15
target_pedantic_warnings(${TARGET_NAME})
16
16
endif ()
17
17
endfunction ()
@@ -30,7 +30,7 @@ endmacro()
30
30
31
31
# @brief Maybe set pedantic compiler options for all targets
32
32
macro(maybe_add_pedantic_warnings)
33
-
if (BUILD_WITH_PEDANTIC_WARNINGS)
33
+
if (MATPLOTPP_BUILD_WITH_PEDANTIC_WARNINGS)
34
34
add_pedantic_warnings()
35
35
endif ()
36
36
endmacro()
@@ -93,4 +93,4 @@ endfunction()
93
93
# based on check_symbol_exists hasn't been enough.
94
94
function(target_nominmax_definition TARGET_NAME)
95
95
target_compile_definitions(${TARGET_NAME} PUBLIC NOMINMAX)
96
-
endfunction()
96
+
endfunction()
Original file line number Diff line number Diff line change
@@ -2215,7 +2215,7 @@ There are two dependencies in [`source/3rd_party`](source/3rd_party). These depe
2215
2215
2216
2216
You can define `WITH_SYSTEM_NODESOUP=ON` or `WITH_SYSTEM_CIMG=ON` in the cmake command line to use a system-provided version of these dependencies.
2217
2217
2218
-
There's an extra target `matplot_opengl` with the experimental [OpenGL backend](#backends). You need to define `BUILD_EXPERIMENTAL_OPENGL_BACKEND=ON` in the CMake command line to build that target. In that case, the build script will also look for these extra dependencies:
2218
+
There's an extra target `matplot_opengl` with the experimental [OpenGL backend](#backends). You need to define `MATPLOTPP_BUILD_EXPERIMENTAL_OPENGL_BACKEND=ON` in the CMake command line to build that target. In that case, the build script will also look for these extra dependencies:
2219
2219
2220
2220
* OpenGL
2221
2221
* GLAD
Original file line number Diff line number Diff line change
@@ -144,13 +144,13 @@ if (HAVE_FBUFSIZE)
144
144
endif()
145
145
146
146
# Build for documentation
147
-
if (BUILD_FOR_DOCUMENTATION_IMAGES)
147
+
if (MATPLOTPP_BUILD_FOR_DOCUMENTATION_IMAGES)
148
148
message("Building matplot for documentation images. wait() commands will be ignored. ~figure will save the files.")
149
149
target_compile_definitions(matplot PUBLIC MATPLOT_BUILD_FOR_DOCUMENTATION_IMAGES)
150
150
endif ()
151
151
152
152
# Include high-resolution world map in the binary
153
-
if (BUILD_HIGH_RESOLUTION_WORLD_MAP)
153
+
if (MATPLOTPP_BUILD_HIGH_RESOLUTION_WORLD_MAP)
154
154
target_compile_definitions(matplot PUBLIC MATPLOT_BUILD_HIGH_RESOLUTION_WORLD_MAP)
155
155
else ()
156
156
message("Not including the high resolution maps for geoplots")
@@ -163,7 +163,7 @@ endif ()
163
163
# Maybe add pedantic warning
164
164
165
165
166
-
#if (BUILD_WITH_PEDANTIC_WARNINGS)
166
+
#if (MATPLOTPP_BUILD_WITH_PEDANTIC_WARNINGS)
167
167
# if (MSVC)
168
168
# target_compile_options(matplot PRIVATE /W4 /WX)
169
169
# else ()
@@ -182,7 +182,7 @@ endif ()
182
182
#######################################################
183
183
### Experimental OpenGL backend ###
184
184
#######################################################
185
-
if (BUILD_EXPERIMENTAL_OPENGL_BACKEND)
185
+
if (MATPLOTPP_BUILD_EXPERIMENTAL_OPENGL_BACKEND)
186
186
# Library for the OpenGL example
187
187
# This is an example of what an OpenGL backend *could* look like.
188
188
# The opengl backend is currently incomplete.
@@ -252,7 +252,7 @@ endif()
252
252
#######################################################
253
253
### Installer ###
254
254
#######################################################
255
-
if (BUILD_INSTALLER)
255
+
if (MATPLOTPP_BUILD_INSTALLER)
256
256
# Install targets
257
257
install(TARGETS matplot
258
258
EXPORT Matplot++Targets
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
1
-
if (BUILD_EXPERIMENTAL_OPENGL_BACKEND)
1
+
if (MATPLOTPP_BUILD_EXPERIMENTAL_OPENGL_BACKEND)
2
2
# Use this to create an OpenGL window as backend
3
3
add_executable(matplot_opengl_test ogl_main.cpp)
4
4
target_link_libraries(matplot_opengl_test PUBLIC matplot_opengl)
5
5
6
6
# Use this to create plots inside an existing OpenGL application
7
7
add_executable(matplot_opengl_embed_test ogl_embed_main.cpp)
8
8
target_link_libraries(matplot_opengl_embed_test PUBLIC matplot_opengl)
9
-
endif ()
9
+
endif ()
Original file line number Diff line number Diff line change
@@ -4,4 +4,4 @@ This is a visual unit test where the `generate_examples` target will run all oth
4
4
5
5
Everytime we update the library, we regenerate the examples to make sure everything is not only working ok but also *looking* good.
6
6
7
-
The library needs to be compiled with the CMake option `BUILD_FOR_DOCUMENTATION_IMAGES` for this test to work. Also, you need to run this target from the project root directory so that the filesystem can find the build and documentation directories.
7
+
The library needs to be compiled with the CMake option `MATPLOTPP_BUILD_FOR_DOCUMENTATION_IMAGES` for this test to work. Also, you need to run this target from the project root directory so that the filesystem can find the build and documentation directories.
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
5
5
#include <regex>
6
6
7
7
int main() {
8
-
// Set CMake option BUILD_FOR_DOCUMENTATION_IMAGES to ON and
8
+
// Set CMake option MATPLOTPP_BUILD_FOR_DOCUMENTATION_IMAGES to ON and
9
9
// run this executable from the root directory as working
10
10
// directory to run all examples.
11
11
// If will set 1) the figure object to save the figure when being destroyed
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4