Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
developer-guide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nektar
developer-guide
Commits
7b0a805e
Commit
7b0a805e
authored
Jan 18, 2018
by
Chris Cantwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated CMakeLists file to build developer guide within the Nektar++ tree.
parent
34df7cd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
CMakeLists.txt
CMakeLists.txt
+52
-0
No files found.
CMakeLists.txt
View file @
7b0a805e
SET
(
USERGUIDESRC
${
CMAKE_CURRENT_SOURCE_DIR
}
)
SET
(
USERGUIDE
${
CMAKE_BINARY_DIR
}
/docs/developers-guide
)
FILE
(
MAKE_DIRECTORY
${
USERGUIDE
}
/html
)
FIND_PROGRAM
(
HTLATEX htlatex
)
MARK_AS_ADVANCED
(
HTLATEX
)
ADD_CUSTOM_TARGET
(
developers-guide-html
export TEXINPUTS=
${
CMAKE_SOURCE_DIR
}
//:
${
USERGUIDESRC
}
//: &&
${
HTLATEX
}
${
USERGUIDESRC
}
/developers-guide.tex
"
${
USERGUIDESRC
}
/styling.cfg,html,3,next,NoFonts"
WORKING_DIRECTORY
${
USERGUIDE
}
/html
)
# If tex4ht successful, create img dir and copy images across
FILE
(
GLOB_RECURSE imgfiles
"img/*.png"
"img/*.jpg"
"*/img/*.png"
"*/img/*.jpg"
)
ADD_CUSTOM_COMMAND
(
TARGET developers-guide-html
POST_BUILD COMMAND
${
CMAKE_COMMAND
}
-E make_directory
${
USERGUIDE
}
/html/img
)
FOREACH
(
img
${
imgfiles
}
)
ADD_CUSTOM_COMMAND
(
TARGET developers-guide-html
POST_BUILD COMMAND
${
CMAKE_COMMAND
}
-E copy
${
img
}
${
USERGUIDE
}
/html/img
)
ENDFOREACH
()
FILE
(
GLOB_RECURSE pdffiles
"*/img/*.pdf"
)
FIND_PROGRAM
(
CONVERT convert
)
FOREACH
(
pdf
${
pdffiles
}
)
GET_FILENAME_COMPONENT
(
BASENAME
${
pdf
}
NAME_WE
)
ADD_CUSTOM_COMMAND
(
TARGET developers-guide-html
POST_BUILD COMMAND
${
CONVERT
}
${
pdf
}
${
USERGUIDE
}
/html/img/
${
BASENAME
}
.png
)
ENDFOREACH
()
FIND_PROGRAM
(
PDFLATEX pdflatex
)
MARK_AS_ADVANCED
(
PDFLATEX
)
FIND_PROGRAM
(
BIBTEX bibtex
)
MARK_AS_ADVANCED
(
BIBTEX
)
FIND_PROGRAM
(
MAKEINDEX makeindex
)
MARK_AS_ADVANCED
(
MAKEINDEX
)
ADD_CUSTOM_TARGET
(
developers-guide-pdf
export TEXINPUTS=
${
CMAKE_SOURCE_DIR
}
//: &&
${
PDFLATEX
}
--output-directory
${
USERGUIDE
}
${
USERGUIDESRC
}
/developers-guide.tex
COMMAND TEXMFOUTPUT=
${
USERGUIDE
}
${
BIBTEX
}
${
USERGUIDE
}
/developers-guide.aux
COMMAND TEXMFOUTPUT=
${
USERGUIDE
}
${
MAKEINDEX
}
${
USERGUIDE
}
/developers-guide.idx
COMMAND TEXINPUTS=
${
CMAKE_SOURCE_DIR
}
//:
${
PDFLATEX
}
--output-directory
${
USERGUIDE
}
${
USERGUIDESRC
}
/developers-guide.tex
COMMAND TEXINPUTS=
${
CMAKE_SOURCE_DIR
}
//:
${
PDFLATEX
}
--output-directory
${
USERGUIDE
}
${
USERGUIDESRC
}
/developers-guide.tex
WORKING_DIRECTORY
${
USERGUIDESRC
}
)
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