<commit_before># $Id: CMakeLists.txt,v 1.14 2006/07/12 14:53:31 ppoilbarbe Exp $
# $Name:  $
#
# Build file for CMake in order to generate the documentation.
#

#OPTION(CYCLUS_DOC_CREATE_PDF "Create PDF reference manual" ON)


# ---------------------------------
# Cmake modules needed
# ---------------------------------
IF (DOXYGEN_FOUND)
	SET(DOXYGEN_SOURCE_DIR ${CYCLUS_SRC_DIR})
  SET(DOXYGEN_INPUT ${DOC_INPUT_DIR}/doxygen.conf)
  SET(DOXYGEN_OUTPUT ${DOC_OUTPUT_DIR}/html/index.html)

	FIND_PACKAGE(HTMLHelp)

	IF (HTML_HELP_COMPILER)
		SET(DOXYGEN_HTMLHELP YES)
	ELSE (HTML_HELP_COMPILER)
		SET(DOXYGEN_HTMLHELP NO)
	ENDIF (HTML_HELP_COMPILER)

	SET(DOXYGEN_LATEX NO)
	SET(DOXYGEN_PDFLATEX NO)
	SET(DOXYGEN_PDF_HYPERLINKS NO)
	SET(DOXYGEN_EXTRACT_PRIVATE YES)
	SET(DOXYGEN_EXTRACT_STATIC YES)
	SET(DOXYGEN_EXTRACT_LOCAL YES)
	SET(DOXYGEN_EXTRACT_INTERNAL YES)
	
	IF (DOT)
		SET(HAVE_DOT YES)
	ELSE (DOT)
		SET(HAVE_DOT NO)
	ENDIF (DOT)
	
	SET(DOXYGEN_LANGUAGE "English" CACHE STRING "Language used by doxygen")
	MARK_AS_ADVANCED(DOXYGEN_LANGUAGE)
	
	STRING(REGEX REPLACE ";" " " DOXYGEN_INPUT_LIST "${DOXYGEN_SOURCE_DIR}")
	
	CONFIGURE_FILE(${DOC_INPUT_DIR}/doxy.conf.in ${DOC_INPUT_DIR}/doxygen.conf)
	
	#	SET(HTML_TARGET ${DOXYGEN_OUTPUT})
	#ADD_CUSTOM_TARGET(${HTML_TARGET} ALL
	#	      ${DOXYGEN} ${DOC_DIR}/doxygen.conf
	#		      DEPENDS ${DOC_DIR}/doxygen.conf)

MESSAGE(STATUS "html should be created in" "${DOC_OUTPUT_DIR}")


IF (WIN32)
  SET(DOXYGEN_GENERATE_MAN NO)
  FIND_PROGRAM(HHC_PROGRAM 
    NAMES hhc.exe 
    PATHS "c:/Program Files/HTML Help Workshop"
    DOC "HTML Help Compiler program")
ELSE (WIN32)
  SET(DOXYGEN_GENERATE_MAN YES)
  SET(HHC_PROGRAM)
ENDIF (WIN32)



ADD_CUSTOM_COMMAND(
  OUTPUT ${DOXYGEN_OUTPUT}
  COMMAND ${CMAKE_COMMAND} -E echo_append "Building cyclus Documentation..."
  COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_INPUT}
  COMMAND ${CMAKE_COMMAND} -E echo "Done."
  WORKING_DIRECTORY ${DOC_OUTPUT_DIR}
  DEPENDS ${DOXYGEN_INPUT}
  )


ADD_CUSTOM_TARGET(cyclusdoc ALL DEPENDS ${DOXYGEN_OUTPUT})

ADD_CUSTOM_TARGET(cyclusdoc_forced
  COMMAND ${CMAKE_COMMAND} -E echo_append "Building cyclus Documentation..."
  COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_INPUT}
  COMMAND ${CMAKE_COMMAND} -E echo "Done."
  WORKING_DIRECTORY ${DOC_OUTPUT_DIR})

ENDIF (DOXYGEN_FOUND)<commit_msg>This is a test of svnsync etc. <commit_after># Build file for CMake in order to generate the documentation.

# ---------------------------------
# Check for Doxygen
# ---------------------------------

IF (DOXYGEN_FOUND)
	SET(DOXYGEN_SOURCE_DIR ${CYCLUS_SRC_DIR})
  SET(DOXYGEN_INPUT ${DOC_INPUT_DIR}/doxygen.conf)
  SET(DOXYGEN_OUTPUT ${DOC_OUTPUT_DIR}/html/index.html)

	FIND_PACKAGE(HTMLHelp)

	IF (HTML_HELP_COMPILER)
		SET(DOXYGEN_HTMLHELP YES)
	ELSE (HTML_HELP_COMPILER)
		SET(DOXYGEN_HTMLHELP NO)
	ENDIF (HTML_HELP_COMPILER)

  # ----------------------------------------------------------------------
	# Some doxyfile settings to be configured into the template doxy.conf.in
  # ----------------------------------------------------------------------
	SET(DOXYGEN_LATEX NO)
	SET(DOXYGEN_PDFLATEX NO)
	SET(DOXYGEN_PDF_HYPERLINKS NO)
	SET(DOXYGEN_EXTRACT_PRIVATE YES)
	SET(DOXYGEN_EXTRACT_STATIC YES)
	SET(DOXYGEN_EXTRACT_LOCAL YES)
	SET(DOXYGEN_EXTRACT_INTERNAL YES)
	
	IF (DOT)
		SET(HAVE_DOT YES)
	ELSE (DOT)
		SET(HAVE_DOT NO)
	ENDIF (DOT)
	
	SET(DOXYGEN_LANGUAGE "English" CACHE STRING "Language used by doxygen")
	MARK_AS_ADVANCED(DOXYGEN_LANGUAGE)
	
	STRING(REGEX REPLACE ";" " " DOXYGEN_INPUT_LIST "${DOXYGEN_SOURCE_DIR}")
	
	CONFIGURE_FILE(${DOC_INPUT_DIR}/doxy.conf.in ${DOC_INPUT_DIR}/doxygen.conf)
	

IF (WIN32)
  SET(DOXYGEN_GENERATE_MAN NO)
  FIND_PROGRAM(HHC_PROGRAM 
    NAMES hhc.exe 
    PATHS "c:/Program Files/HTML Help Workshop"
    DOC "HTML Help Compiler program")
ELSE (WIN32)
  SET(DOXYGEN_GENERATE_MAN YES)
  SET(HHC_PROGRAM)
ENDIF (WIN32)

ADD_CUSTOM_COMMAND(
  OUTPUT ${DOXYGEN_OUTPUT}
  COMMAND ${CMAKE_COMMAND} -E echo_append "Building cyclus Documentation..."
  COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_INPUT}
  COMMAND ${CMAKE_COMMAND} -E echo "Done."
  WORKING_DIRECTORY ${DOC_OUTPUT_DIR}
  DEPENDS ${DOXYGEN_INPUT}
  )


ADD_CUSTOM_TARGET(cyclusdoc ALL DEPENDS ${DOXYGEN_OUTPUT})

ADD_CUSTOM_TARGET(cyclusdoc_forced
  COMMAND ${CMAKE_COMMAND} -E echo_append "Building cyclus Documentation..."
  COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_INPUT}
  COMMAND ${CMAKE_COMMAND} -E echo "Done."
  WORKING_DIRECTORY ${DOC_OUTPUT_DIR})

ENDIF (DOXYGEN_FOUND)
{'fraction_non_alphanumeric': 0.158011540168664, 'fraction_numerical': 0.006435863293386595, 'mean_word_length': 3.9203056768558953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6502516', 'n_tokens_mistral': 1892, 'n_tokens_neox': 1748, 'n_words': 329}