Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
7db13c7a
Commit
7db13c7a
authored
Dec 14, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7847 from alalek:install_docs_target_2.4
parents
af0ee306
7241b90d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
7 deletions
+21
-7
CMakeLists.txt
CMakeLists.txt
+8
-6
CMakeLists.txt
doc/CMakeLists.txt
+13
-1
No files found.
CMakeLists.txt
View file @
7db13c7a
...
...
@@ -278,12 +278,14 @@ if (ANDROID)
endif
()
endif
()
if
(
ANDROID OR WIN32
)
set
(
OPENCV_DOC_INSTALL_PATH doc
)
elseif
(
INSTALL_TO_MANGLED_PATHS
)
set
(
OPENCV_DOC_INSTALL_PATH share/OpenCV-
${
OPENCV_VERSION
}
/doc
)
else
()
set
(
OPENCV_DOC_INSTALL_PATH share/OpenCV/doc
)
if
(
NOT DEFINED OPENCV_DOC_INSTALL_PATH
)
if
(
ANDROID OR WIN32
)
set
(
OPENCV_DOC_INSTALL_PATH doc
)
elseif
(
INSTALL_TO_MANGLED_PATHS
)
set
(
OPENCV_DOC_INSTALL_PATH share/OpenCV-
${
OPENCV_VERSION
}
/doc
)
else
()
set
(
OPENCV_DOC_INSTALL_PATH share/OpenCV/doc
)
endif
()
endif
()
if
(
WIN32
)
...
...
doc/CMakeLists.txt
View file @
7db13c7a
...
...
@@ -49,7 +49,7 @@ if(BUILD_DOCS AND HAVE_SPHINX)
function
(
ocv_doc_add_file_to_fake_root source destination
)
add_custom_command
(
OUTPUT
"
${
DOC_FAKE_ROOT
}
/
${
destination
}
"
COMMAND
"
${
CMAKE_COMMAND
}
"
-E copy
"
${
source
}
"
"
${
DOC_FAKE_ROOT
}
/
${
destination
}
"
COMMAND
"
${
CMAKE_COMMAND
}
"
-E copy
_if_different
"
${
source
}
"
"
${
DOC_FAKE_ROOT
}
/
${
destination
}
"
DEPENDS
"
${
source
}
"
COMMENT
"Copying
${
destination
}
to fake root..."
VERBATIM
...
...
@@ -184,4 +184,16 @@ if(HAVE_DOC_GENERATOR)
foreach
(
f
${
OPTIONAL_DOC_LIST
}
)
install
(
FILES
"
${
f
}
"
DESTINATION
"
${
OPENCV_DOC_INSTALL_PATH
}
"
OPTIONAL COMPONENT docs
)
endforeach
()
# Alias to build/install docs only
set
(
__deps
""
)
foreach
(
target docs html_docs doxygen
)
if
(
TARGET
${
target
}
)
list
(
APPEND __deps
${
target
}
)
endif
()
endforeach
()
add_custom_target
(
install_docs
DEPENDS
${
__deps
}
COMMAND
"
${
CMAKE_COMMAND
}
"
-DCMAKE_INSTALL_COMPONENT=docs -P
"
${
CMAKE_BINARY_DIR
}
/cmake_install.cmake"
)
endif
(
HAVE_DOC_GENERATOR
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment