GLEW for Linux

This commit is contained in:
ogamespec 2023-08-14 00:13:44 +03:00
parent e7f9a44cc3
commit 5d01868622
2 changed files with 4 additions and 3 deletions

View file

@ -15,6 +15,7 @@ find_package(SDL2 REQUIRED CONFIG REQUIRED COMPONENTS SDL2)
find_package(SDL2 REQUIRED CONFIG COMPONENTS SDL2main)
find_package (Threads)
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
add_definitions (-D_LINUX)
add_definitions (-DCMAKE_BUILD_TYPE=Debug)
@ -84,6 +85,6 @@ add_executable (pureikyubu
thirdparty/imgui/imgui_widgets.cpp
)
include_directories( thirdparty/imgui ${CMAKE_THREAD_LIBS_INIT} ${OPENGL_INCLUDE_DIRS} ${SDL2_INCLUDE_DIRS} )
include_directories( thirdparty/imgui ${CMAKE_THREAD_LIBS_INIT} ${OPENGL_INCLUDE_DIRS} ${SDL2_INCLUDE_DIRS} $(GLEW_INCLUDE_DIRS) )
target_link_libraries (pureikyubu ${CMAKE_THREAD_LIBS_INIT} ${OPENGL_LIBRARIES} ${GLUT_LIBRARY} fmt SDL2 )
target_link_libraries (pureikyubu ${CMAKE_THREAD_LIBS_INIT} ${OPENGL_LIBRARIES} ${GLUT_LIBRARY} fmt SDL2 GLEW)

View file

@ -29,7 +29,7 @@ make
./pureikyubu pong.dol
```
Requirements: CMake, pthread, OpenGL, imgui, SDL2. If cmake says that some components cannot be built, you should look for solutions on the Internet (`apt get install xxx`) as usual.
Requirements: CMake, pthread, OpenGL, GLEW, imgui, SDL2. If cmake says that some components cannot be built, you should look for solutions on the Internet (`apt get install xxx`) as usual.
## Progress