gctex 0.3.12

gctex is a Rust crate designed for encoding and decoding texture formats used in the Nintendo GameCube and Wii games. The library provides C bindings, making it useful in both Rust and C/C++ based projects.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cmake_minimum_required(VERSION 3.26)

project(gctex_example)

# Require C++20
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)

add_subdirectory(download_gctex)

add_executable(your_cpp_bin main.cpp)
target_link_libraries(your_cpp_bin PRIVATE gctex)
add_custom_command(TARGET your_cpp_bin POST_BUILD
  COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_RUNTIME_DLLS:your_cpp_bin> $<TARGET_FILE_DIR:your_cpp_bin> 
  COMMAND_EXPAND_LISTS
)