CMake User Contributed Macros: Difference between revisions
(Added link to CMakeMacroForceAddFlags) |
(Add links for UseFlex and UseBison) |
||
Line 10: | Line 10: | ||
#[[CMakeUserFindPARMETIS | Find ParMetis]] | #[[CMakeUserFindPARMETIS | Find ParMetis]] | ||
#[[CMakeUserFindVLD| Find VLD - Visual Leak Debugger]] | #[[CMakeUserFindVLD| Find VLD - Visual Leak Debugger]] | ||
#[[CMakeUserUseBison| Use Bison - Parser Generator]] | |||
#[[CMakeUserUseFlex| Use Flex - Lexer Generator]] | |||
#[[CMakeUserUseLATEX| Use LaTeX - Build LaTeX Documents]] | #[[CMakeUserUseLATEX| Use LaTeX - Build LaTeX Documents]] | ||
#[[CMakeUserUseRPMTools| Use RPM Tools - Build RPM (source or binary)]] | #[[CMakeUserUseRPMTools| Use RPM Tools - Build RPM (source or binary)]] |
Revision as of 10:56, 24 August 2007
User Contributed Macros
Find Modules
Although CMake comes with a whole bunch of FindXXX packages, there is a large number of packages there are not covered. The hope is that these user-contributed macros will eventually make their way into the official distribution. Before contributing, please have your FindXXX package conform to the CMake Module Guidelines.
- Find Autopack
- Find ClanLib
- Find DirectShow
- Find MySQL
- Find ParMetis
- Find VLD - Visual Leak Debugger
- Use Bison - Parser Generator
- Use Flex - Lexer Generator
- Use LaTeX - Build LaTeX Documents
- Use RPM Tools - Build RPM (source or binary)
Make Equivalents
While attempting to convert a gnu makefile to Cmake, there was a need to provide some macros to provide equivalent functionality.
Some helpers along the way
- COPY_IF_DIFFERENT
- MERGE --- Merges two sorted lists into a single sorted list. Useful to keep source and header files next to each other.
- CREATE_FINAL_FILE -- create a KDE style final file, which includes all source files, so that the compilation will be noticable faster.
- List Operations -- A compilation of some helpful list operations.
- PARSE_ARGUMENTS -- A macro to help parse arguments for other macros.
- ADD_CXXTEXT -- A macro to add tests written the CxxTest testing framework.
- Force Flags -- A macro to force certain arguments for specified flag (similar to a set union).
See also the list of all macros in the CMake Macro category.
Visual Studio generator helpers
When generating Visual Studio projects, the priorities can be sometimes different than for other generators. These are some VS-specific (and sometimes not-so-specific) macros that could help you generate better VS projects.
- GatherProjectFiles -- create and cache a list of project files by recursively globbing a directory structure
- GenerateProject -- creates a VS project with subgroups that mimic the directory structure