root/branch/src-parallel/CMakeLists.txt

Revision 150, 4.0 kB (checked in by heiland, 4 years ago)

Turn off building the Python interface.

Line 
1CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
2PROJECT(COMPUCELL3D)
3
4# Should we build shared libraries
5OPTION(BUILD_SHARED_LIBS "Build shared libraries" ON)
6
7# Specify a version for all libs to use
8SET(COMPUCELL3D_MAJOR_VERSION 3)
9SET(COMPUCELL3D_MINOR_VERSION 2)
10SET(COMPUCELL3D_BUILD_VERSION 0)
11SET(COMPUCELL3D_VERSION
12  "${COMPUCELL3D_MAJOR_VERSION}.${COMPUCELL3D_MINOR_VERSION}.${COMPUCELL3D_BUILD_VERSION}")
13
14SET(COMPUCELL3D_LIBRARY_PROPERTIES ${COMPUCELL3D_LIBRARY_PROPERTIES}
15  VERSION "${COMPUCELL3D_VERSION}"
16  SOVERSION "${COMPUCELL3D_MAJOR_VERSION}.${COMPUCELL3D_MINOR_VERSION}"
17)
18
19# Always include the top level source for compiles
20SET_DIRECTORY_PROPERTIES(PROPERTIES
21  INCLUDE_DIRECTORIES ${COMPUCELL3D_SOURCE_DIR})
22
23# Where to install files relative to prefix
24SET(COMPUCELL3D_INSTALL_LIB_DIR "/lib")
25SET(COMPUCELL3D_INSTALL_PLUGIN_DIR "/lib/CompuCell3DPlugins")
26SET(COMPUCELL3D_INSTALL_STEPPABLE_DIR "/lib/CompuCell3DSteppables")
27SET(COMPUCELL3D_INSTALL_INCLUDE_DIR "/include/CompuCell3D")
28
29# Find libz for use in the CompuCell/IO utils
30INCLUDE(FindZLIB)
31
32# Should we build wrappings
33OPTION(BUILD_PYINTERFACE "Build Python language wrappings" OFF)
34
35# Xerces-c dependency
36FIND_PATH(XERCESC_INCLUDE_DIR xercesc/util/XercesDefs.hpp
37  /usr/include
38  /usr/local/include
39  /opt/local/include
40  ${COMPUCELL3D_SOURCE_DIR}/xercesc/include
41  )
42
43FIND_LIBRARY(XERCESC_LIBRARY xerces-c
44  /usr/lib
45  /usr/local/lib
46  /opt/local/lib
47  ${COMPUCELL3D_SOURCE_DIR}/xercesc/lib
48  )
49 
50FIND_PATH(MPI_INCLUDE_DIR mpi.h
51  /usr/include
52  /usr/local/include
53  /opt/local/include
54  ${COMPUCELL3D_SOURCE_DIR}/mpi/include
55  )
56
57FIND_LIBRARY(MPI_LIBRARY mpi
58  /usr/lib
59  /usr/local/lib
60  /opt/local/lib
61  ${COMPUCELL3D_SOURCE_DIR}/mpi/lib
62  )
63
64
65
66# add if statement for the case when we use "internal" xercesc
67# if xercesc path does not match /usr/lib and does not match /usr/local/lib then ...
68# set LD_LIBRARY PATHS accordingly in run scripts
69
70
71
72
73# Where the plugins go by default
74#FIND_PATH(COMPUCELL3D_PLUGIN_PATH
75#  ${CMAKE_INSTALL_PREFIX}/lib/CompuCell3DPlugins
76#  DOC "Installation directory for the compucell plugins")
77#IF(NOT COMPUCELL3D_PLUGIN_PATH)
78SET(COMPUCELL3D_PLUGIN_PATH
79    /lib/CompuCell3DPlugins)
80#ENDIF(NOT COMPUCELL3D_PLUGIN_PATH)
81
82
83SET(COMPUCELL3D_STEPPABLE_PATH
84    /lib/CompuCell3DSteppables)
85
86
87
88# Recurse into subprojects
89ADD_SUBDIRECTORY(BasicUtils)
90ADD_SUBDIRECTORY(PublicUtilities)
91ADD_SUBDIRECTORY(Utils)
92ADD_SUBDIRECTORY(XercesUtils)
93ADD_SUBDIRECTORY(XMLCereal)
94ADD_SUBDIRECTORY(CompuCell3D)
95
96#Adding Player
97#ADD_SUBDIRECTORY(CompuCellPlayer)
98
99IF(BUILD_PYINTERFACE)
100  ADD_SUBDIRECTORY(pyinterface)
101ENDIF(BUILD_PYINTERFACE)
102
103
104
105
106add_subdirectory(post_install_tasks)
107
108
109
110#writing run scripts
111# SET(COMPUCELL_INSTALL_DIR @CMAKE_INSTALL_PREFIX@)
112# configure_file(${PROJECT_SOURCE_DIR}/run_CompuCellNew.sh.in ${CMAKE_INSTALL_PREFIX}/run_CompuCellNew.sh @ONLY)
113# configure_file(${PROJECT_SOURCE_DIR}/run_CompuCellNew_silent.sh.in ${CMAKE_INSTALL_PREFIX}/run_CompuCellNew_silent.sh @ONLY)
114# configure_file(${PROJECT_SOURCE_DIR}/run_Console.sh.in ${CMAKE_INSTALL_PREFIX}/run_Console.sh @ONLY)
115#
116# #copying example files
117# file(GLOB example_files "@CMAKE_SOURCE_DIR@/examples/*")
118# file(INSTALL DESTINATION "@CMAKE_INSTALL_PREFIX@" TYPE FILE FILES ${example_files})
119#
120# #copying example_python_tutorial
121# file(GLOB example_files_python_tutorial "@CMAKE_SOURCE_DIR@/examples_PythonTutorial/*")
122# file(INSTALL DESTINATION "@CMAKE_INSTALL_PREFIX@/examples_PythonTutorial" TYPE FILE FILES ${example_files_python_tutorial})
123#
124# #copying documentation
125# file(GLOB docs_files "@CMAKE_SOURCE_DIR@/docs/*")
126# file(INSTALL DESTINATION "@CMAKE_INSTALL_PREFIX@/docs" TYPE FILE FILES ${docs_files})
127#
128# #copying xercesc
129# add_custom_target(xercesc_copy ${CMAKE_COMMAND} ARGS -E copy_directory ${CMAKE_SOURCE_DIR}/xercesc ${CMAKE_INSTALL_PREFIX}/xercesc)
130# add_custom_command(TARGET CompuCell3D POST_BUILD COMMAND ${CMAKE_COMMAND} ARGS -E copy_directory ${CMAKE_SOURCE_DIR}/xercesc ${CMAKE_INSTALL_PREFIX}/xercesc)
131# copy_directory(${CMAKE_SOURCE_DIR}/xercesc ${CMAKE_INSTALL_PREFIX}/xercesc)
132
133
134
135
136
Note: See TracBrowser for help on using the browser.