<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <p>Hi,<br>
    </p>
    <p>I want to create a config file for my package so that it can be
      found using find_package()<br>
    </p>
    <p>In the config file, I have to define the following variables:
    </p>
    <ul>
      <li> <NAME>_FOUND
      </li>
      <li> <NAME>_INCLUDE_DIRS<br>
      </li>
      <li> <NAME>_LIBRARIES<br>
      </li>
      <li> <NAME>_DEFINITIONS
      </li>
    </ul>
    <p>I can't find any clear documentation concerning
      <NAME>_DEFINITION.<br>
      Should I export the definitions prefixed with or without "-D".<br>
    </p>
    <p>To be clear, if the package neads to be build with<br>
      add_definitions("-DMY_DEF")<br>
      in <NAME>Config.cmake should I set <NAME>_DEFINITIONS
      var as "MY_DEF" or "-DMY_DEF" ?<br>
    </p>
    <p>I would prefer "-DMY_DEF" so that in the project that will use my
      package I can simply call<br>
      add_definitions(${<NAME>_DEFINITIONS}), but I'm not sure
      this is the recommended ?<br>
    </p>
    <p><br>
      Thanks<br>
      Fabien<br>
      <br>
    </p>
  </body>
</html>