css-linux-cheat/CMakeLists.txt

14 lines
426 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 2.8)
project(cstrike-basehook)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -std=c++14 -m32 -Wall -Wextra -Wpedantic")
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)
2016-12-25 06:39:27 -05:00
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libstdc++ -m32")
include_directories("include")
file(GLOB_RECURSE SOURCE_FILES src/*.cpp include/*.cpp)
add_library(cstrike-basehook SHARED ${SOURCE_FILES})
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)
2016-12-25 06:39:27 -05:00
target_link_libraries(cstrike-basehook SDL2 GL)