Skip to content

Commit 4c7c68e

Browse files
add glfw3 install back to cmake
1 parent ef8da59 commit 4c7c68e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

simulate/CMakeLists.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,22 @@ if(SIMULATE_BUILD_EXECUTABLE)
273273
)
274274
endif()
275275

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+
276292
install(
277293
TARGETS simulate
278294
EXPORT ${PROJECT_NAME}

0 commit comments

Comments
 (0)