Link library against libGL
Fixes unknown GL symbols: undefined symbol: glEnable (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glTexCoordPointer (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glPopAttrib (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glEnableClientState (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glMatrixMode (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glDisable (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glPushAttrib (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glLoadIdentity (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glBlendFunc (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glBindTexture (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glOrtho (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glDeleteTextures (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glDisableClientState (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glPixelStorei (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glGetIntegerv (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glDrawElements (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glTexImage2D (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glScissor (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glPushMatrix (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glVertexPointer (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glPopMatrix (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glViewport (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glColorPointer (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glTexParameteri (cmake-build-debug/libcstrike-basehook.so) undefined symbol: glGenTextures (cmake-build-debug/libcstrike-basehook.so)
This commit is contained in:
parent
11025e6484
commit
974ef0cc33
|
@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8)
|
||||||
project(cstrike-basehook)
|
project(cstrike-basehook)
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -std=c++14 -m32 -Wall -Wextra -Wpedantic")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -std=c++14 -m32 -Wall -Wextra -Wpedantic")
|
||||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libstdc++ -m32 -lSDL2")
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libstdc++ -m32")
|
||||||
|
|
||||||
include_directories("include")
|
include_directories("include")
|
||||||
|
|
||||||
|
@ -10,4 +10,4 @@ file(GLOB_RECURSE SOURCE_FILES src/*.cpp include/*.cpp)
|
||||||
|
|
||||||
add_library(cstrike-basehook SHARED ${SOURCE_FILES})
|
add_library(cstrike-basehook SHARED ${SOURCE_FILES})
|
||||||
|
|
||||||
target_link_libraries(cstrike-basehook)
|
target_link_libraries(cstrike-basehook SDL2 GL)
|
||||||
|
|
Loading…
Reference in New Issue