Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into sximada-patch-13
Browse files Browse the repository at this point in the history
  • Loading branch information
TakesxiSximada committed Oct 22, 2023
2 parents 135ea98 + 4a0fdc3 commit ecf8b19
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
3 changes: 1 addition & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies:
- glfw==2.5.0
- gpy==1.10.0
- git+https://github.com/yunshengtian/neat-python@2762ab630838520ca6c03a866e8a158f592b0370
- gym==0.19.0
- gym==0.22.0
- h5py==3.6.0
- imageio==2.14.1
- matplotlib==3.5.1
Expand All @@ -20,7 +20,6 @@ dependencies:
- pygifsicle==1.0.5
- pyopengl==3.1.5
- pyopengl-accelerate==3.1.5
- stable-baselines3==1.4.0
- torch==1.10.2
- ttkbootstrap==1.5.1
- typing==3.7.4.3
Expand Down
4 changes: 3 additions & 1 deletion evogym/simulator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ endif()

if(UNIX)
find_package(OpenGL REQUIRED)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}) # use custom FindGLEW.cmake
set(GLEW_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/externals/glew/include)
set(GLEW_LIBRARY ${PROJECT_SOURCE_DIR}/externals/glew/lib/libGLEW.*)
find_package(GLEW REQUIRED)
endif()

Expand Down Expand Up @@ -46,4 +49,3 @@ add_subdirectory(SimulatorCPP/)

set(CMAKE_CXX_STANDARD_LIBRARIES -ldl)
# set(CMAKE_VERBOSE_MAKEFILE ON)

23 changes: 23 additions & 0 deletions evogym/simulator/FindGLEW.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# FindGLEW.cmake
# Search for GLEW library and include directories

find_path(GLEW_INCLUDE_DIR GL/glew.h)
find_library(GLEW_LIBRARY NAMES GLEW GLEW32)

if (GLEW_INCLUDE_DIR AND GLEW_LIBRARY)
set(GLEW_FOUND TRUE)
else()
set(GLEW_FOUND FALSE)
endif()

if (GLEW_FOUND)
if (NOT GLEW_FIND_QUIETLY)
message(STATUS "Found GLEW: ${GLEW_LIBRARY}")
endif ()
else()
if (GLEW_FIND_REQUIRED)
message(FATAL_ERROR "Could NOT find GLEW")
endif ()
endif()

mark_as_advanced(GLEW_INCLUDE_DIR GLEW_LIBRARY)

0 comments on commit ecf8b19

Please sign in to comment.