add %FDIR% macro

Signed-off-by: Martin Zenzes <mzenzes@mega2000.de>
add cmake template

Signed-off-by: Martin Zenzes <mzenzes@mega2000.de>