mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-01 16:08:30 +00:00
TracyConfig.cmake now sets TRACY_VERSION_STRING and a TracyConfigVersion.cmake is generated and installed, so find_package(Tracy X.Y CONFIG) works against installed trees. Compatibility mode is SameMinorVersion: for a 0.x project the minor version is the compatibility unit, and consumers who need to pin the exact version can use find_package(... EXACT). SamePatchVersion is not an option - it requires CMake 4.4 while the project minimum is 3.13.
8 lines
192 B
CMake
8 lines
192 B
CMake
@PACKAGE_INIT@
|
|
|
|
set(TRACY_VERSION_STRING "@TRACY_VERSION_STRING@")
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(Threads REQUIRED)
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/TracyTargets.cmake") |