This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/docs/CMakeLists.txt

140 lines
4.7 KiB
CMake
Raw Normal View History

2015-11-18 15:06:25 +00:00
2017-09-06 01:17:09 +01:00
if (WITH_DOCS)
set (TOP_DIR YES)
set(DOCS_SOURCE_DIR ${CMAKE_SOURCE_DIR}/docs)
2018-05-01 23:25:58 +01:00
SET (CMAKE_HTML_EXTRA_)
SET( EXT
2017-09-06 01:17:09 +01:00
${DOCS_SOURCE_DIR}/custom/application.js
${DOCS_SOURCE_DIR}/custom/assets
${DOCS_SOURCE_DIR}/custom/bootstrap.min.css
${DOCS_SOURCE_DIR}/custom/bootstrap.min.js
${DOCS_SOURCE_DIR}/custom/customdoxygen.css
${DOCS_SOURCE_DIR}/custom/default
${DOCS_SOURCE_DIR}/custom/doxy-boot.js
${DOCS_SOURCE_DIR}/custom/font-awesome.min.css
${DOCS_SOURCE_DIR}/custom/footer.html
${DOCS_SOURCE_DIR}/custom/header.html
${DOCS_SOURCE_DIR}/custom/jquery-3.2.1.min.js
${DOCS_SOURCE_DIR}/custom/offcanvas.css
${DOCS_SOURCE_DIR}/custom/offcanvas.js
${DOCS_SOURCE_DIR}/custom/solarized-light.css
${DOCS_SOURCE_DIR}/custom/theme.css
${DOCS_SOURCE_DIR}/custom/yap.css
)
2018-10-12 14:57:05 +01:00
2017-09-06 01:17:09 +01:00
foreach(i ${CMAKE_HTML_EXTRA_})
string(APPEND CMAKE_HTML_EXTRA ${i} " ")
endforeach(i ${CMAKE_HTML_EXTRA_})
set(DOCS_EXCLUDE_
2018-04-20 14:59:17 +01:00
${CMAKE_SOURCE_DIR}/build
${CMAKE_SOURCE_DIR}/Debug
2017-09-06 01:17:09 +01:00
${CMAKE_SOURCE_DIR}/packages/jpl
${CMAKE_SOURCE_DIR}/packages/swig
2018-05-20 18:40:56 +01:00
${CMAKE_SOURCE_DIR}/packages/Problog/problog_examples/output
${CMAKE_SOURCE_DIR}/packages/Problog/problog_examples/queries
2017-09-06 01:17:09 +01:00
${CMAKE_SOURCE_DIR}/packages/myddas/sqlite3/src
2018-11-27 10:32:06 +00:00
${CMAKE_SOURCE_DIR}/packages/gecode/6.0.1
${CMAKE_SOURCE_DIR}/packages/gecode/6.0.0
${CMAKE_SOURCE_DIR}/packages/gecode/5.1.0
${CMAKE_SOURCE_DIR}/packages/gecode/5.0.0
2017-09-06 01:17:09 +01:00
${CMAKE_SOURCE_DIR}/packages/gecode/4.4.0
${CMAKE_SOURCE_DIR}/packages/gecode/4.2.1
${CMAKE_SOURCE_DIR}/packages/gecode/4.2.0
${CMAKE_SOURCE_DIR}/packages/gecode/4.0.0
${CMAKE_SOURCE_DIR}/packages/gecode/3.7.3
${CMAKE_SOURCE_DIR}/packages/gecode/3.7.2
${CMAKE_SOURCE_DIR}/packages/gecode/3.7.1
${CMAKE_SOURCE_DIR}/packages/gecode/3.7.0
${CMAKE_SOURCE_DIR}/packages/gecode/3.6.0
2018-06-18 22:53:53 +01:00
${CMAKE_SOURCE_DIR}/packages/problog
2017-09-06 01:17:09 +01:00
${CMAKE_SOURCE_DIR}/packages/gecode/dev
${CMAKE_SOURCE_DIR}/C/traced_absmi_insts.h
${CMAKE_SOURCE_DIR}/H/globals.h
2018-11-27 10:32:06 +00:00
${CMAKE_SOURCE_DIR}/OPTYap/locks_alpha_funcs.h
${CMAKE_SOURCE_DIR}/OPTYap/locks_mips_funcs.h
${CMAKE_SOURCE_DIR}/OPTYap/locks_sparc.h
2017-09-06 01:17:09 +01:00
${CMAKE_SOURCE_DIR}/packages/cplint
${CMAKE_SOURCE_DIR}/packages/CLPBN/examples
${CMAKE_SOURCE_DIR}/packages/CLPBN/horus
2018-11-27 10:32:06 +00:00
${CMAKE_SOURCE_DIR}/packages/cuda
2017-09-06 01:17:09 +01:00
${CMAKE_SOURCE_DIR}/packages/prosqlite
${CMAKE_SOURCE_DIR}/packages/pyswip
2018-06-05 20:51:49 +01:00
${CMAKE_SOURCE_DIR}/packages/python/yap_kernel
${CMAKE_SOURCE_DIR}/packages/python/swig
2017-09-06 01:17:09 +01:00
${CMAKE_SOURCE_DIR}/packages/yap-lbfgs/liblbfgs-1.10
2018-11-27 10:32:06 +00:00
${CMAKE_SOURCE_DIR}/packages/swi-minisat2
2017-09-06 01:17:09 +01:00
${CMAKE_SOURCE_DIR}/library/dialect/swi/os
2018-05-20 00:47:27 +01:00
${CMAKE_SOURCE_DIR}/*/bprolog/*
${CMAKE_SOURCE_DIR}/*/prism/*
${CMAKE_SOURCE_DIR}/*/gecodde/[345]*
${CMAKE_SOURCE_DIR}/packages/gecode/gecode3_yap.cc
${CMAKE_SOURCE_DIR}/packages/gecode/gecode4_yap.cc
${CMAKE_SOURCE_DIR}/packages/gecode/gecode5_yap.cc
${CMAKE_SOURCE_DIR}/packages/gecode/gecode3.yap
${CMAKE_SOURCE_DIR}/packages/gecode/gecode4.yap
${CMAKE_SOURCE_DIR}/packages/gecode/gecode5.yap
${CMAKE_SOURCE_DIR}/packages/gecode/gecode3_yap_hand_written.yap
${CMAKE_SOURCE_DIR}/packages/gecode/gecode4_yap_hand_written.yap
${CMAKE_SOURCE_DIR}/packages/gecode/gecode5_yap_hand_written.yap
*/CMakeFiles/* *~ */#*
2017-09-06 01:17:09 +01:00
)
2018-11-27 10:32:06 +00:00
2017-09-06 01:17:09 +01:00
foreach(i ${DOCS_EXCLUDE_})
string(APPEND DOCS_EXCLUDE ${i} " ")
endforeach(i ${DOCS_EXCLUDE_})
# add a target to generate API documentation with Doxygen
set(doxyfile_in ${CMAKE_SOURCE_DIR}/docs/Doxyfile.in)
add_subdirectory(../packages/raptor/doc ${CMAKE_BINARY_DIR}/packages/raptor/doc)
2018-05-01 23:25:58 +01:00
SET(DOC_INPUT_FILES_
${CMAKE_SOURCE_DIR}/docs/md
2018-10-15 13:48:49 +01:00
${CMAKE_SOURCE_DIR}/pl
2018-05-01 23:25:58 +01:00
${CMAKE_SOURCE_DIR}/CXX
${CMAKE_SOURCE_DIR}/OPTYap
${CMAKE_SOURCE_DIR}/C
${CMAKE_SOURCE_DIR}/H
${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/os
${CMAKE_SOURCE_DIR}/library
${CMAKE_SOURCE_DIR}/swi/library
2018-05-20 00:47:27 +01:00
${CMAKE_SOURCE_DIR}/packages
2018-05-01 23:25:58 +01:00
)
2017-09-06 01:17:09 +01:00
foreach(i ${DOC_INPUT_FILES_})
string(APPEND DOC_INPUT_FILES ${i} " ")
endforeach(i ${DOC_INPUT_FILES_})
set(doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
2015-11-18 15:06:25 +00:00
configure_file(${doxyfile_in} ${doxyfile} @ONLY)
2017-09-06 01:17:09 +01:00
configure_file(${CMAKE_SOURCE_DIR}/docs/source/conf.py.in source/conf.py)
configure_file(${CMAKE_SOURCE_DIR}/docs/source/index.rst source/index.rst)
add_custom_target(docs
COMMAND ${DOXYGEN_EXECUTABLE} ${doxyfile}
2018-05-20 18:40:56 +01:00
)
2017-09-06 01:17:09 +01:00
2015-11-18 15:06:25 +00:00
2017-05-02 07:42:21 +01:00
if (EXISTS ${CMAKE_CURRENT_BINARY_DIR}/html)
2017-04-07 23:10:59 +01:00
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION ${docdir})
2017-05-02 07:42:21 +01:00
2017-04-07 23:10:59 +01:00
install(FILES ${CODES} DESTINATION ${docdir})
2017-05-02 07:42:21 +01:00
endif()
2015-11-18 15:06:25 +00:00
2017-09-06 01:17:09 +01:00
endif()