File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -273,6 +273,22 @@ if(SIMULATE_BUILD_EXECUTABLE)
273
273
)
274
274
endif ()
275
275
276
+ if (NOT MUJOCO_SIMULATE_USE_SYSTEM_GLFW)
277
+ # We downloaded GLFW. Depending if it is a static or shared LIBRARY we might
278
+ # need to install it.
279
+ get_target_property (MJ_GLFW_LIBRARY_TYPE glfw TYPE )
280
+ if (MJ_GLFW_LIBRARY_TYPE STREQUAL SHARED_LIBRARY)
281
+ install (
282
+ TARGETS glfw
283
+ EXPORT ${PROJECT_NAME}
284
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR} " COMPONENT simulate
285
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR} " COMPONENT simulate
286
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR} " COMPONENT simulate
287
+ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT simulate
288
+ )
289
+ endif ()
290
+ endif ()
291
+
276
292
install (
277
293
TARGETS simulate
278
294
EXPORT ${PROJECT_NAME}
You can’t perform that action at this time.
0 commit comments