wtl packages Windows Template Library as a CMake header-only dependency.
The exported CMake target is:
wtl::wtlLinking this target adds the WTL include directory to consumers, so existing WTL includes continue to work:
#include <atlapp.h>
#include <atlwin.h>WTL requires a Windows C++ toolchain with ATL headers available.
Use FetchContent and pin a specific tag:
include(FetchContent)
FetchContent_Declare(
wtl
GIT_REPOSITORY https://github.com/tinysec/wtl.git
GIT_TAG v10.01)
FetchContent_MakeAvailable(wtl)
target_link_libraries(your_target PRIVATE wtl::wtl)Available tags:
v9.1.5321
v10.0.10320
v10.01
master tracks the latest packaged WTL version.