File: CMakeLists.txt

package info (click to toggle)
chemical-structures 2.2.dfsg.0-8
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 4,108 kB
  • sloc: xml: 7,191; python: 974; sh: 68; makefile: 21
file content (36 lines) | stat: -rw-r--r-- 1,539 bytes parent folder | download | duplicates (6)
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
project(chemical-structures)

set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)

cmake_minimum_required(VERSION 2.4.0)

#################################################################
#                    Define global variables                    #
#################################################################
set(VERSION 2.2)
set(AVAILABLE_LANG "en" "es" "de" "fr" "nl" "tw")
set(SHARE_HOME ${CMAKE_INSTALL_PREFIX}/share/chemical-structures)

#################################################################
#                        Python Settings                        #
#################################################################
find_package(PythonInterp REQUIRED)
set(MAKEINDEXFILES ${CMAKE_SOURCE_DIR}/tools/make_index_files.py)
set(MAKEXHTMLFILES ${CMAKE_SOURCE_DIR}/tools/make_xhtml_files.py)

#################################################################
#                      Open Babel Settings                      #
#################################################################
find_package(OpenBabel2Exe)

#################################################################
#                     Define global target                      #
#################################################################
add_custom_target(clean_xhtml)
add_custom_target(clean_structure)

#################################################################
#                      Add subdirectories                       #
#################################################################
add_subdirectory(src)