Update SimulateDependencies.cmake
This commit is contained in:
@@ -102,3 +102,23 @@ if(NOT SIMULATE_STANDALONE)
|
|||||||
target_compile_options(glfw PRIVATE ${MUJOCO_MACOS_COMPILE_OPTIONS})
|
target_compile_options(glfw PRIVATE ${MUJOCO_MACOS_COMPILE_OPTIONS})
|
||||||
target_link_options(glfw PRIVATE ${MUJOCO_MACOS_LINK_OPTIONS})
|
target_link_options(glfw PRIVATE ${MUJOCO_MACOS_LINK_OPTIONS})
|
||||||
endif()
|
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()
|
||||||
|
|||||||
Reference in New Issue
Block a user