tCMakeLists.txt - pism - [fork] customized build of PISM, the parallel ice sheet model (tillflux branch)
(HTM) git clone git://src.adamsgaard.dk/pism
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
tCMakeLists.txt (821B)
---
1 # Find latex and create doc targets:
2 project(PISM_Documentation "NONE")
3 cmake_minimum_required (VERSION 2.8.0)
4
5 find_package(LATEX)
6 find_package(Doxygen)
7
8 if (NOT Pism_SOURCE_DIR)
9 # This assumes that the current directory ("doc") is right in the
10 # PISM source code directory, i.e. pism/doc.
11 get_filename_component(Pism_SOURCE_DIR "${PROJECT_SOURCE_DIR}/.." REALPATH)
12 message(STATUS "Setting Pism_SOURCE_DIR to ${Pism_SOURCE_DIR}")
13
14 add_subdirectory(${Pism_SOURCE_DIR}/site-packages ${CMAKE_BINARY_DIR}/site-packages)
15
16 list (APPEND CMAKE_MODULE_PATH "${Pism_SOURCE_DIR}/CMake")
17 endif()
18
19 # User's Manual, Climate Forcing, Installation:
20 add_subdirectory(sphinx)
21
22 if (PDFLATEX_COMPILER)
23 # Source code browser:
24 add_subdirectory (browser EXCLUDE_FROM_ALL)
25 endif () # if PDFLATEX_COMPILER