diff --git a/CMakeLists.txt b/CMakeLists.txt
index 954ec6ff6435adb0274c854df1cbea900b4593ae..4c4486280e7b79d953059ce30274d1cbf7efe1e9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -260,10 +260,10 @@ endif()
 add_custom_command(
         TARGET sfx POST_BUILD
         COMMAND ${CMAKE_COMMAND} -E copy_directory
-        ${CMAKE_SOURCE_DIR}/data
+        ${CMAKE_CURRENT_SOURCE_DIR}/data
         ${CMAKE_CURRENT_BINARY_DIR}/data)
 add_custom_command(
         TARGET sfx POST_BUILD
         COMMAND ${CMAKE_COMMAND} -E copy_directory
-        ${CMAKE_SOURCE_DIR}/config-ex
+        ${CMAKE_CURRENT_SOURCE_DIR}/config-ex
         ${CMAKE_CURRENT_BINARY_DIR}/config-ex)
diff --git a/doxygen/config b/doxygen/config
index 047600a8e8683db9e0e98f6cc27b15d1b8765806..085ab23c427578b17d44dc002528297d06c34ec6 100644
--- a/doxygen/config
+++ b/doxygen/config
@@ -950,7 +950,7 @@ WARN_LOGFILE           =
 # Note: If this tag is empty the current directory is searched.
 
 INPUT                  =               ../srcC ../includeCXX ../srcCXX ../includeCU ../srcCU ../includeF ../srcF
-
+INPUT+=../README.md
 # This tag can be used to specify the character encoding of the source files
 # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
 # libiconv (or the iconv built into libc) for the transcoding. See the libiconv
@@ -1169,7 +1169,7 @@ FILTER_SOURCE_PATTERNS =
 # (index.html). This can be useful if you have a project on for instance GitHub
 # and want to reuse the introduction page also for the doxygen output.
 
-USE_MDFILE_AS_MAINPAGE =
+USE_MDFILE_AS_MAINPAGE = ../README.md
 
 # The Fortran standard specifies that for fixed formatted Fortran code all
 # characters from position 72 are to be considered as comment. A common