mirror of
https://github.com/gwdevhub/gMod.git
synced 2026-07-15 15:09:30 +00:00
f07e180b53
* remove more unnecessary code * todo? * 1.5.5.0 * change GetHash from in_out parameter to return the hash * remove ForceReload bool for textures * remove textureserver, place logic in textureclient, not yet finished next up change FileToMod and shit to use modded_textures map * fix debug compilation errors * fix typo * should_update boolean, replace the entire MergeUpdate logic later * tidy up d3d9_dll.cpp and bits (#12) * define `ASSERT` Added minhook lib to tidy up hooks Remove cruft from dx9_dll.cpp * Bug fix * Another typo --------- Co-authored-by: Jon <> * gitignore * Proxy functions, cache dx9 device type * simplify LoadModsFromFile * move minhook dependency to fetch content * Make it work * Tweaked debug for file reads * Fixed inverse check * unordered_map * set should_update (yikes) * simplify libzippp.cmake * remove unnecessary code * rename project files (keep uMod_ prefix only for d3d9 classes) * remove unused Nothing() function * remove unnecessary fields * remove some code duplication refactor methods together * refactor SwitchTextures and UnswitchTextures together * move loaded_size into function * enable libzippp encryption again * copy data from opened zipentry and then delete the entry * fix hash bug in volume textures * const * change uMod_TextureClient to TextureClient * revert libzippp.cmake * 1.5.6
43 lines
1.1 KiB
CMake
43 lines
1.1 KiB
CMake
include_guard()
|
|
include(FetchContent)
|
|
include(libzip)
|
|
|
|
find_library(ZLIB_LIBRARY REQUIRED
|
|
NAMES zlibstatic
|
|
PATHS ${CMAKE_INSTALL_PREFIX}/lib
|
|
)
|
|
find_library(LIBZIP_LIBRARY REQUIRED
|
|
NAMES zip
|
|
PATHS ${CMAKE_INSTALL_PREFIX}/lib
|
|
)
|
|
|
|
FetchContent_Declare(
|
|
libzippp
|
|
GIT_REPOSITORY https://github.com/ctabin/libzippp
|
|
GIT_TAG libzippp-v7.0-1.10.1)
|
|
FetchContent_GetProperties(libzippp)
|
|
|
|
if (NOT libzippp_POPULATED)
|
|
FetchContent_Populate(libzippp)
|
|
endif()
|
|
|
|
add_library(libzippp STATIC)
|
|
|
|
set(SOURCES
|
|
"${libzippp_SOURCE_DIR}/src/libzippp.h"
|
|
"${libzippp_SOURCE_DIR}/src/libzippp.cpp"
|
|
)
|
|
source_group(TREE ${libzippp_SOURCE_DIR} FILES ${SOURCES})
|
|
target_sources(libzippp PRIVATE ${SOURCES})
|
|
target_include_directories(libzippp PUBLIC "${libzippp_SOURCE_DIR}/src")
|
|
target_include_directories(libzippp PRIVATE "${CMAKE_INSTALL_PREFIX}/include")
|
|
target_compile_definitions(libzippp PUBLIC
|
|
LIBZIPPP_WITH_ENCRYPTION
|
|
)
|
|
target_link_libraries(libzippp PRIVATE
|
|
${LIBZIP_LIBRARY}
|
|
${ZLIB_LIBRARY}
|
|
)
|
|
|
|
set_target_properties(libzippp PROPERTIES FOLDER "Dependencies/")
|