mirror of
https://github.com/emu-russia/pureikyubu.git
synced 2024-05-18 12:20:25 -04:00
GLEW for Linux
This commit is contained in:
parent
e7f9a44cc3
commit
5d01868622
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue