-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
65 lines (55 loc) · 1.48 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
PROJECT(IceTUsersGuide NONE)
CMAKE_MINIMUM_REQUIRED(VERSION 3.3)
INCLUDE(UseLATEX.cmake)
SET(TITLE "IceT Users' Guide and Reference")
SET(VERSION "2.2")
SET(CHAPTERS
Introduction.tex
Tutorial.tex
BasicUsage.tex
CustomizingCompositing.tex
Strategies.tex
NewStrategies.tex
Communicators.tex
Transitioning.tex
)
LATEX_COPY_GLOBBED_FILES(
${CMAKE_CURRENT_SOURCE_DIR}/SANDreport/*.cls
${CMAKE_CURRENT_BINARY_DIR}
)
LATEX_COPY_GLOBBED_FILES(
${CMAKE_CURRENT_SOURCE_DIR}/SANDreport/*.sty
${CMAKE_CURRENT_BINARY_DIR}
)
FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/SANDimages)
LATEX_COPY_GLOBBED_FILES(
${CMAKE_CURRENT_SOURCE_DIR}/SANDreport/SANDimages/*.eps
${CMAKE_CURRENT_BINARY_DIR}/SANDimages
)
LATEX_COPY_GLOBBED_FILES(
${CMAKE_CURRENT_SOURCE_DIR}/SANDreport/SANDimages/*.pdf
${CMAKE_CURRENT_BINARY_DIR}/SANDimages
)
LATEX_COPY_GLOBBED_FILES(
${CMAKE_CURRENT_SOURCE_DIR}/latex2man/*.sty
${CMAKE_CURRENT_BINARY_DIR}
)
LATEX_COPY_GLOBBED_FILES(
${CMAKE_CURRENT_SOURCE_DIR}/latex2man/*.cfg
${CMAKE_CURRENT_BINARY_DIR}
)
LATEX_COPY_GLOBBED_FILES(
${CMAKE_CURRENT_SOURCE_DIR}/examples/*.c
${CMAKE_CURRENT_BINARY_DIR}/examples
)
ADD_LATEX_DOCUMENT(IceTUsersGuide.tex USE_INDEX
INPUTS ${CHAPTERS}
CONFIGURE IceTUsersGuide.tex
IMAGE_DIRS images
)
ADD_SUBDIRECTORY(manpages)
ADD_SUBDIRECTORY(enumerations)
OPTION(ICET_BUILD_EXAMPLES "Build the IceT examples." OFF)
IF (ICET_BUILD_EXAMPLES)
ADD_SUBDIRECTORY(examples)
ENDIF (ICET_BUILD_EXAMPLES)