dune_register_package_flagsΒΆ

dune_register_package_flags(
    [INCLUDE_DIRS include_dir1 [include_dir2 ...]]
    [COMPILE_DEFINITIONS compile_definition1 [compile_definition2 ...]]
    [COMPILE_OPTIONS compile_option1 [compile_option2 ...]]
    [LIBRARIES librarie1 [librarie2 ...]]
    [APPEND]
)
INCLUDE_DIRS

The list of include directories needed by the external package.

COMPILE_DEFINITIONS

The list of compile definitions needed by the external package.

COMPILE_OPTIONS

The list of compile options needed by the external package.

LIBRARIES

The list of libraries that the external package should link to. The order of the input is preserved in the output.

APPEND

If this option is set, the definitions, flags and directories specified in this function are appended to the global collection of flags instead of being prepended. Only use it, if you know what you are doing.

To correctly implement the automatic handling of external libraries, the compile flags, include paths and link flags of all found packages must be registered with this function. This function is only necessary for people that want to write their own FindFooBar CMake modules to link against additional libraries which are not supported by the DUNE core modules. Call this function at the end of every find module. If you are using an external FindFoo module which you cannot alter, call it after the call to find_package(foo).