F add install directives

initially added install directives in CMakeLists.txt
but multiple fixes were needed to get this to work when installed