mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 16:07:55 +08:00
31 lines
1009 B
Diff
31 lines
1009 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index d69f71eb..31429d23 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -143,5 +143,11 @@ install(FILES ${common_includes}
|
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/common)
|
|
install(EXPORT TracyConfig
|
|
NAMESPACE Tracy::
|
|
- FILE TracyConfig.cmake
|
|
+ FILE TracyTargets.cmake
|
|
+ DESTINATION share/Tracy)
|
|
+include(CMakePackageConfigHelpers)
|
|
+configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in
|
|
+ "${CMAKE_CURRENT_BINARY_DIR}/TracyConfig.cmake"
|
|
+ INSTALL_DESTINATION share/Tracy)
|
|
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/TracyConfig.cmake
|
|
DESTINATION share/Tracy)
|
|
diff --git a/Config.cmake.in b/Config.cmake.in
|
|
new file mode 100644
|
|
index 00000000..fc913ab3
|
|
--- /dev/null
|
|
+++ b/Config.cmake.in
|
|
@@ -0,0 +1,6 @@
|
|
+@PACKAGE_INIT@
|
|
+
|
|
+include(CMakeFindDependencyMacro)
|
|
+find_dependency(Threads REQUIRED)
|
|
+
|
|
+include("${CMAKE_CURRENT_LIST_DIR}/TracyTargets.cmake")
|
|
\ No newline at end of file
|