mirror of
https://github.com/gwdevhub/gMod.git
synced 2026-07-15 15:09:30 +00:00
fd9d1af477
* use image.OverrideFormat() * 1.6.4 * import std * uninitialised member variable * debug statement for 64 bit hash testing * nopetynope * uint32_t * support for 64 bit hashes, but rip compute time :/ * refactor weird comments and constructors * 1.7.0.0 because of 64 bit hashes * only check crc64 if at least one mod with crc64 is loaded * do some dumb shit to deal with incorrect bmps somehow (needs work) * remove image interpretation for bmps * create TpfConvert.exe to convert tpf files easily * attempt * set up vcpkg and install d3dx though that * missing env variable? * Win32 architecture * update ci to tag TpfConvert.exe and d3dx9.dll as well (required to run TpfConvert) * documentation
40 lines
888 B
CMake
40 lines
888 B
CMake
add_executable(TpfConvert)
|
|
|
|
# Find all .ixx files in the TpfConvert folder
|
|
file(GLOB TPF_SOURCES "src/*.ixx")
|
|
|
|
# Add the .ixx files to the TpfConvert target
|
|
target_sources(TpfConvert PRIVATE ${TPF_SOURCES})
|
|
|
|
set_target_properties(TpfConvert PROPERTIES
|
|
CXX_STANDARD 23
|
|
CXX_STANDARD_REQUIRED ON
|
|
)
|
|
|
|
target_compile_definitions(TpfConvert PRIVATE
|
|
"NOMINMAX"
|
|
"_WIN32_WINNT=_WIN32_WINNT_WIN7"
|
|
"WIN32_LEAN_AND_MEAN"
|
|
"VC_EXTRALEAN"
|
|
)
|
|
|
|
if(DEFINED ENV{VCPKG_ROOT})
|
|
message(STATUS "VCPKG_ROOT: $ENV{VCPKG_ROOT}")
|
|
else()
|
|
message(STATUS "VCPKG_ROOT is not set")
|
|
endif()
|
|
|
|
if(DEFINED CMAKE_TOOLCHAIN_FILE)
|
|
message(STATUS "CMAKE_TOOLCHAIN_FILE: ${CMAKE_TOOLCHAIN_FILE}")
|
|
else()
|
|
message(STATUS "CMAKE_TOOLCHAIN_FILE is not set")
|
|
endif()
|
|
|
|
find_package(dxsdk-d3dx CONFIG REQUIRED)
|
|
|
|
target_link_libraries(TpfConvert PRIVATE
|
|
libzippp
|
|
Microsoft::D3DX9
|
|
d3d9
|
|
)
|