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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Core Modules
dune-common
Commits
4640fde2
Commit
4640fde2
authored
12 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Make latex optional.
[[Imported from SVN: r6686]]
parent
19ea99a2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/modules/DuneDoc.cmake
+26
-0
26 additions, 0 deletions
cmake/modules/DuneDoc.cmake
doc/buildsystem/CMakeLists.txt
+4
-3
4 additions, 3 deletions
doc/buildsystem/CMakeLists.txt
with
30 additions
and
3 deletions
cmake/modules/DuneDoc.cmake
+
26
−
0
View file @
4640fde2
FIND_PACKAGE
(
LATEX
)
FIND_PROGRAM
(
IMAGEMAGICK_CONVERT convert
DOC
"The convert program that comes with ImageMagick (available at http://www.imagemagick.org)."
)
set
(
LATEX_USABLE ON
)
if
(
NOT
${
LATEX_COMPILER
}
)
message
(
WARING
" Need latex to create documentation!"
)
set
(
LATEX_USABLE
)
endif
(
NOT
${
LATEX_COMPILER
}
)
if
(
NOT
${
BIBTEX_COMPILER
}
)
message
(
WARING
" Need bibtex to create documentation!"
)
set
(
LATEX_USABLE
)
endif
(
NOT
${
BIBTEX_COMPILER
}
)
if
(
NOT
${
MAKEINDEX_COMPILER
}
)
message
(
WARING
" Need makeindex to create documentation!"
)
set
(
LATEX_USABLE
)
endif
(
NOT
${
MAKEINDEX_COMPILER
}
)
if
(
NOT
${
IMAGEMAGICK_CONVERT
}
)
message
(
WARNING
" Need imagemagick to create latex documentation!"
)
set
(
LATEX_USABLE
)
endif
(
NOT
${
IMAGEMAGICK_CONVERT
}
)
if
(
LATEX_USABLE
)
include
(
UseLATEX
)
endif
(
LATEX_USABLE
)
# Module that provides a custom target make doc at the top level
# directory and utility macros for creating install directives
# that make sure that the files to be installed are previously
...
...
This diff is collapsed.
Click to expand it.
doc/buildsystem/CMakeLists.txt
+
4
−
3
View file @
4640fde2
include
(
UseLATEX
)
ADD_LATEX_DOCUMENT
(
buildsystem.tex FATHER_TARGET doc DEFAULT_PDF INPUTS ../Makefile.am ../../configure.ac ../example.opts
)
create_doc_install
(
${
CMAKE_CURRENT_BINARY_DIR
}
/buildsystem.pdf share/doc/dune-common/buildsystem
)
if
(
LATEX_USABLE
)
ADD_LATEX_DOCUMENT
(
buildsystem.tex FATHER_TARGET doc DEFAULT_PDF INPUTS ../Makefile.am ../../configure.ac ../example.opts
)
create_doc_install
(
${
CMAKE_CURRENT_BINARY_DIR
}
/buildsystem.pdf share/doc/dune-common/buildsystem
)
endif
(
LATEX_USABLE
)
#add_custom_target(install_buildsystem)
#install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" --build \"${CMAKE_BINARY_DIR}\" --target buildsystem_install )")
#install(FILES ${CMAKE_CURRENT_BINARY_DIR}/buildsystem.pdf
...
...
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