From 02b1e4b96a10b77e40dbc7f5e5d23ccd61a2b08b Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Mon, 1 Aug 2011 23:03:47 +0200 Subject: [PATCH] Add example to documentation Alex --- Modules/WriteBasicConfigVersionFile.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Modules/WriteBasicConfigVersionFile.cmake b/Modules/WriteBasicConfigVersionFile.cmake index a6175c701..361eb6017 100644 --- a/Modules/WriteBasicConfigVersionFile.cmake +++ b/Modules/WriteBasicConfigVersionFile.cmake @@ -12,6 +12,13 @@ # If you project has more elaborated version matching rules, you will need to write your # own custom ConfigVersion.cmake file, instead of using this macro. # +# Example: +# write_basic_config_version_file(${CMAKE_CURRENT_BINARY_DIR}/FooConfigVersion.cmake +# VERSION 1.2.3 +# COMPATIBILITY SameMajorVersion ) +# install(FILES ${CMAKE_CURRENT_BINARY_DIR}/FooConfigVersion.cmake +# DESTINATION lib/cmake/Foo ) +# # Internally, this macro executes configure_file() on the input file # Modules/BasicConfigVersion-AnyNewerVersion/SameMajorVersion.cmake.in to # create the resulting version file.