Salome HOME
Copyright update 2022
[tools/documentation.git] / dev / cmake / CMakeLists.txt
index 46a6ce53e813c9aa6c5f033d5970134225795d33..bcc3bbfc8977deb80323da1708ab637728f14a30 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2012-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2012-2022  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-# Include common macros
-# ==================
-INCLUDE(SalomeDocumentationMacros)
+SALOME_CONFIGURE_FILE(source/conf.py.in conf.py)
 
-# Add sphinx documentation target
-# ============================
-SALOME_ADD_SPHINX_DOC( html cmake_doc ${CMAKE_CURRENT_SOURCE_DIR}/source)
+# Build with sphinx
+# =================
 
-# Install rules
-# ==========
-INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/_build/html DESTINATION ${SALOME_INSTALL_DOC_DEV}/cmake)
+SALOME_ADD_SPHINX_DOC(html
+                      cmake_doc
+                      ${CMAKE_CURRENT_SOURCE_DIR}/source
+                      ${CMAKE_CURRENT_BINARY_DIR})
+
+# Install
+# =======
+
+INSTALL(DIRECTORY
+        ${CMAKE_CURRENT_BINARY_DIR}/_build/html
+        DESTINATION ${SALOME_INSTALL_DOC_DEV}/cmake)