# Add documentation target
if( ${DOXYGEN_FOUND} STREQUAL "YES" )
  if( ${LATEX_FOUND} )
    add_custom_target( doc
      ${DOXYGEN_EXECUTABLE} "doxyfile"
      COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/doxygen/latex/make.bat"
      WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
      COMMENT "Generating API documentation with Doxygen." VERBATIM
      )
  endif()
endif()

install(FILES default.species DESTINATION .)
if(WIN32)
  if( ${BUILD_DB_UPLOADER} )
    install(FILES default.input_database DESTINATION .)
    install(FILES default.output_database DESTINATION .)
  endif()
endif()


# Add documentation target
if( ${DOXYGEN_FOUND} STREQUAL "YES" )
  if( ${LATEX_FOUND} )
    add_custom_target( doc
      ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/doxyfile"
      WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/.."
      COMMENT "Generating API documentation with Doxygen." VERBATIM
      )
  endif()
endif()

install(FILES default.species DESTINATION .)
if(WIN32)
  if( ${BUILD_DB_UPLOADER} )
    install(FILES default.input_database DESTINATION .)
    install(FILES default.output_database DESTINATION .)
  endif()
endif()


Remove call to make.bat for linux systems
Remove call to make.bat for linux systems
