diff options
author | Ian Scott <ian.m.scott@stud.man.ac.uk> | 2002-09-02 07:03:43 -0400 |
---|---|---|
committer | Ian Scott <ian.m.scott@stud.man.ac.uk> | 2002-09-02 07:03:43 -0400 |
commit | 63d64d5780aa189324800e70feb6345a73b8e8a3 (patch) | |
tree | a806defdada082ed52b292f43347ad8cf3aff382 /Modules/readme.txt | |
parent | a888ba53faad5027a5f7941971a56a959035505f (diff) | |
download | cmake-63d64d5780aa189324800e70feb6345a73b8e8a3.tar.gz |
Define a single expected format for the values defined in every FindXXX.cmake file.
Upgrade all the QT functionality to use the new FindXXX.cmake format
Add a module for AVIFile.
Diffstat (limited to 'Modules/readme.txt')
-rw-r--r-- | Modules/readme.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Modules/readme.txt b/Modules/readme.txt new file mode 100644 index 0000000000..57e7916a57 --- /dev/null +++ b/Modules/readme.txt @@ -0,0 +1,18 @@ +Note to authors of FindXXX.cmake files + +We would like all FindXXX.cmake files to produce consistent variable names. + +XXX_INCLUDE_DIR, Where to find xxx.h, etc. +XXX_LIBRARIES, The libraries to link against to use XXX. These should include full paths. +XXX_DEFINITIONS, Definitions to use when compiling code that uses XXX. +XXX_EXECUTABLE, Where to find the XXX tool. +XXX_YYY_EXECUTABLE, Where to find the YYY tool that comes with XXX. +XXX_ROOT_DIR, Where to find the home directory of XXX. +XXX_FOUND, Set to false if we haven't found, or don't want to use XXX. + + +You do not have to provide all of the above variables. You should provide XXX_FOUND under most circumstances. If XXX is a library, then XXX_INCLUDE_DIR, XXX_LIBRARIES, and XXX_DEFINITIONS should also be defined. + +Try to keep as many options as possible out of the cache, leaving at least one option which can be used to disable use of the module, or find a lost library (e.g. XXX_ROOT_DIR) + +If you need other commands to do special things (e.g. the QT_WRAP_UI setting in FindQt.cmake) then it should still begin with XXX_. This gives a sort of namespace effect. |