Skip to content

Commit

Permalink
Update SimulateDependencies.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
vidurvij-apptronik committed Oct 28, 2024
1 parent 832229a commit 9dd05d3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions simulate/cmake/SimulateDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,23 @@ if(NOT SIMULATE_STANDALONE)
target_compile_options(glfw PRIVATE ${MUJOCO_MACOS_COMPILE_OPTIONS})
target_link_options(glfw PRIVATE ${MUJOCO_MACOS_LINK_OPTIONS})
endif()


message(STATUS "lolwaGLFW3 Source Directory: ${glfw3_SOURCE_DIR}")

# Install GLFW headers if not using system GLFW
if(NOT MUJOCO_SIMULATE_USE_SYSTEM_GLFW)
FetchContent_GetProperties(glfw3)
if(NOT glfw3_POPULATED)
message(FATAL_ERROR "GLFW3 not populated")
endif()

install(
DIRECTORY ${glfw3_SOURCE_DIR}/include/GLFW
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
COMPONENT simulate
FILES_MATCHING PATTERN "*.h"
PATTERN "CMake*" EXCLUDE
PATTERN ".git*" EXCLUDE
)
endif()

0 comments on commit 9dd05d3

Please sign in to comment.