plexmediaserver_crack/linux/CMakeLists.txt
yuv420p10le 2a003b95ba v1.40.3.8555+ support and other quirks.
* Now works with v1.40.3.8555 (inlined) and older versions too.
* Added a whitelist of features now rather than a global-enable.
* Refactored some code to use std::optional.
* Linux: Wrote proper hooking function. No unhooking support as it's unneeded.
* Windows: Now uses SafetyHook as we need trampolines.
* Windows: When building for debug, you can see queried features and their caller (return address offset from PMS base address); reverse on your own or query me.
2024-06-11 20:41:05 +03:00

19 lines
773 B
CMake

cmake_minimum_required(VERSION 3.18)
project(plexmediaserver_crack)
SET(CMAKE_BUILD_RPATH_USE_ORIGIN TRUE)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
add_compile_options(-Wextra -Werror)
set(SOURCES main.cpp hook.cpp Zydis.c)
set(HEADERS hook.hpp Zydis.h)
add_library(plexmediaserver_crack SHARED ${SOURCES} ${HEADERS})
set_target_properties(plexmediaserver_crack PROPERTIES PREFIX "")
set_target_properties(plexmediaserver_crack PROPERTIES LINK_FLAGS "-static-libstdc++ -static-libgcc")
set_target_properties(plexmediaserver_crack PROPERTIES OUTPUT_NAME "plexmediaserver_crack")
target_link_libraries(plexmediaserver_crack PUBLIC rt)
target_include_directories(plexmediaserver_crack PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})