Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Koch
dune-common
Commits
afee2743
Commit
afee2743
authored
10 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
[CMake] Doxygen ignores existens of doc/doxygen/html/index.html in src
parent
961a15ed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/modules/DuneDoxygen.cmake
+18
-24
18 additions, 24 deletions
cmake/modules/DuneDoxygen.cmake
with
18 additions
and
24 deletions
cmake/modules/DuneDoxygen.cmake
+
18
−
24
View file @
afee2743
...
...
@@ -47,26 +47,20 @@ MACRO (add_doxygen_target)
set
(
DOXYSTYLE_FILE
${
CMAKE_CURRENT_SOURCE_DIR
}
/Doxystyle
)
endif
(
"
${
CMAKE_PROJECT_NAME
}
"
STREQUAL
"dune-common"
)
message
(
STATUS
"Using scripts from
${
SCRIPT_DIR
}
for creating doxygen stuff."
)
set
(
_src_file _src_file-NOTFOUND
)
find_file
(
_src_file index.html
${
CMAKE_CURRENT_SOURCE_DIR
}
/html
)
if
(
_src_file
)
set
(
_src_dir
${
CMAKE_CURRENT_SOURCE_DIR
}
)
add_custom_target
(
doxygen_
${
ProjectName
}
)
else
(
_src_file
)
if
(
DOXYGEN_FOUND
)
prepare_doxyfile
()
# A custom command that exectutes doxygen
add_custom_command
(
OUTPUT html COMMAND
${
CMAKE_COMMAND
}
-D DOXYGEN_EXECUTABLE=
${
DOXYGEN_EXECUTABLE
}
-P
${
SCRIPT_DIR
}
/RunDoxygen.cmake
COMMENT
"Running doxygen documentation. This may take a while"
DEPENDS Doxyfile.in
)
# Create a target for building the doxygen documentation of a module,
# that is run during make doc.
add_custom_target
(
doxygen_
${
ProjectName
}
DEPENDS html
)
add_dependencies
(
doc doxygen_
${
ProjectName
}
)
endif
(
DOXYGEN_FOUND
)
set
(
_src_dir
${
CMAKE_CURRENT_BINARY_DIR
}
)
endif
(
_src_file
)
if
(
DOXYGEN_FOUND
)
prepare_doxyfile
()
# A custom command that executes doxygen
add_custom_command
(
OUTPUT html
COMMAND
${
CMAKE_COMMAND
}
-D DOXYGEN_EXECUTABLE=
${
DOXYGEN_EXECUTABLE
}
-P
${
SCRIPT_DIR
}
/RunDoxygen.cmake
COMMENT
"Running doxygen documentation. This may take a while"
DEPENDS Doxyfile.in
)
# Create a target for building the doxygen documentation of a module,
# that is run during make doc
add_custom_target
(
doxygen_
${
ProjectName
}
DEPENDS html
)
add_dependencies
(
doc doxygen_
${
ProjectName
}
)
endif
(
DOXYGEN_FOUND
)
# Use a cmake call to install the doxygen documentation and create a
# target for it
...
...
@@ -76,10 +70,10 @@ MACRO (add_doxygen_target)
"execute_process(COMMAND
${
CMAKE_COMMAND
}
--build
${
CMAKE_BINARY_DIR
}
--target doxygen_
${
ProjectName
}
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
)
file(GLOB doxygenfiles
GLOB
${
_src_dir
}
/html/*.html
${
_src_dir
}
/html/*.png
${
_src_dir
}
/html/*.css
${
_src_dir
}
/html/*.gif)
GLOB
${
CMAKE_CURRENT_BINARY_DIR
}
/html/*.html
${
CMAKE_CURRENT_BINARY_DIR
}
/html/*.png
${
CMAKE_CURRENT_BINARY_DIR
}
/html/*.css
${
CMAKE_CURRENT_BINARY_DIR
}
/html/*.gif)
set(doxygenfiles
\"\$
{doxygenfiles}
\"
)
foreach(_file
\$
{doxygenfiles})
get_filename_component(_basename
\$
{_file} NAME)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment