commit
89edbf8abf
@ -7,7 +7,7 @@ set(CMAKE_BUILD_TYPE_VALUES "Debug;Release" CACHE INTERNAL "List of supported bu
|
||||
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_BUILD_TYPE_VALUES})
|
||||
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
project(cathook VERSION 0.0.1 DESCRIPTION "Free Source Engine Trainer")
|
||||
project(cathook VERSION 0.0.1)
|
||||
add_library(cathook SHARED "")
|
||||
|
||||
set(GameSpecific 1 CACHE BOOL "Build for specific target game (As opposed to universal, but slower, lib)")
|
||||
@ -128,4 +128,4 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||
endif()
|
||||
|
||||
add_custom_command(TARGET cathook POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:cathook> "${CMAKE_SOURCE_DIR}/bin/$<TARGET_FILE_NAME:cathook>")
|
||||
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:cathook> "${CMAKE_SOURCE_DIR}/bin/$<TARGET_FILE_NAME:cathook>")
|
||||
|
@ -37,7 +37,7 @@ and a lot of useful features, including
|
||||
|
||||
You need CMake to build cathook, CMake should take care of dependencies
|
||||
|
||||
Install [libglez](https://github.com/nullifiedcat/libglez) and [libxoverlay](https://github.com/nullifiedcat/libxoverlay)
|
||||
Install [libglez](https://github.com/nullifiedcat/libglez), [libxoverlay](https://github.com/nullifiedcat/libxoverlay) and [simple-ipc](https://github.com/nullworks/simple-ipc)
|
||||
|
||||
* Clone the repo of library (`git clone <URL>`)
|
||||
* `mkdir build && cd build`
|
||||
|
@ -51,7 +51,7 @@ export LD_LIBRARY_PATH="$GAMEROOT"\
|
||||
ulimit -n 2048
|
||||
|
||||
export LD_PRELOAD
|
||||
LD_PRELOAD="$(pwd)/bin/libcathook.so"
|
||||
LD_PRELOAD="$(pwd)/bin/libcathook.so:/usr/lib/i386-linux-gnu/libstdc++.so.6"
|
||||
|
||||
# Enable nVidia threaded optimizations
|
||||
export __GL_THREADED_OPTIMIZATIONS=1
|
||||
|
Reference in New Issue
Block a user