+6
-3
lines changedFilter options
+6
-3
lines changed Original file line number Diff line number Diff line change
@@ -90,6 +90,8 @@ add_library(matplot
90
90
freestanding/plot.h
91
91
)
92
92
93
+
set(TARGETS matplot)
94
+
93
95
# Target aliases
94
96
add_library(Matplot++::matplot ALIAS matplot)
95
97
add_library(Matplot++::matplot++ ALIAS matplot)
@@ -220,7 +222,7 @@ if (MATPLOTPP_BUILD_EXPERIMENTAL_OPENGL_BACKEND)
220
222
# Use CPM only if not found, to avoid ODR violations
221
223
# find_package(GLAD REQUIRE) would suffice if it worked well
222
224
FetchContent_Declare(glad GIT_REPOSITORY https://github.com/Dav1dde/glad.git GIT_TAG df8e9e16110b305479a875399cee13daa0ccadd9)
223
-
FetchContent_MakeAvailable(glad)
225
+
FetchContent_MakeAvailable(glad)
224
226
else ()
225
227
# FindGLAD does not usually create a target, so we create an interface target
226
228
if (NOT TARGET glad)
@@ -245,16 +247,17 @@ if (MATPLOTPP_BUILD_EXPERIMENTAL_OPENGL_BACKEND)
245
247
backend/opengl.h
246
248
backend/opengl.cpp
247
249
)
248
-
target_include_directories(matplot_opengl PUBLIC matplot)
249
250
target_link_libraries(matplot_opengl PUBLIC matplot glad glfw ${CMAKE_DL_LIBS})
251
+
252
+
list(APPEND TARGETS matplot_opengl)
250
253
endif()
251
254
252
255
#######################################################
253
256
### Installer ###
254
257
#######################################################
255
258
if (MATPLOTPP_BUILD_INSTALLER)
256
259
# Install targets
257
-
install(TARGETS matplot
260
+
install(TARGETS ${TARGETS}
258
261
EXPORT Matplot++Targets
259
262
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
260
263
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
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