configure_file(
  ${CMAKE_CURRENT_LIST_DIR}/xcfun.h
  ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
  COPYONLY
  )

install(
  FILES
    ${CMAKE_CURRENT_LIST_DIR}/xcfun.h
  DESTINATION
    ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
  )

configure_file(
  ${CMAKE_CURRENT_LIST_DIR}/xcfun.f90
  ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
  COPYONLY
  )

install(
  FILES
    ${CMAKE_CURRENT_LIST_DIR}/xcfun.f90
  DESTINATION
    ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
  )

configure_file(
  ${CMAKE_CURRENT_LIST_DIR}/xcfun.h
  ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
  COPYONLY
  )

install(
  FILES
    ${CMAKE_CURRENT_LIST_DIR}/xcfun.h
  DESTINATION
    ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
  )

configure_file(
  ${CMAKE_CURRENT_LIST_DIR}/xcfun.F90
  ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
  COPYONLY
  )

install(
  FILES
    ${CMAKE_CURRENT_LIST_DIR}/xcfun.F90
  DESTINATION
    ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
  )

Fix compilation error on Travis
Fix compilation error on Travis