FLASH4.8 introdces the capability to configure a FLASH application using the cmake build tool, enabled by setting up with the option -cmake. In analogy to the site-specific Makefile.h, when using cmake setup wil look for a site.cmake in sites/<hostname>/site.cmake that provides some site specific configuration information. Minimally a user needs to specify the various compilers and flags.
Libraries are searched using cmake's find_package to find external libraries and link against targets defined in the requested LIBARARY Config directives. For libraries that don't have a FindLIBNAME command provided by cmake, they can be added to the directory tools/cmake, which gets added to the CMAKE_MODULE_PATH by the setup generated CMakeLists.txt. When possible some of the commonly used libraries in FLASH have wrappers in tools/cmake around the cmake provided commands that accept hints for the library's location that follow the LIBNAME_DIR format convention.
The FLASH application can be built by pointing cmake to the desired object directory