ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/CMakeLists.txt
Revision: 1466
Committed: Fri Jul 9 23:13:29 2010 UTC (15 years ago) by chuckv
Content type: text/plain
File size: 1299 byte(s)
Log Message:
Adding stuff for cmake

File Contents

# Content
1 # Top level cmake script for OpenMD.
2
3 cmake_minimum_required (VERSION 2.6)
4 project(OpenMD)
5
6
7 # OpenMD version number.
8 set (OpenMD_VERSION_MAJOR 2)
9 set (OpenMD_VERSION_MINOR 0)
10 set (OpenMD_VERSION_TINY 0) q
11
12 # cmake modules that are needed to build oopse
13 set (CMAKE_MODULE_PATH ${OpenMD_SOURCE_DIR}/cmake/modules)
14
15
16 enable_language( Fortran C CXX)
17
18
19 configure_file (
20 "${PROJECT_SOURCE_DIR}/Config.h.in"
21 "${PROJECT_BINARY_DIR}/Config.h"
22 )
23
24 # Figure out compiler stuff. We need to know which c, c++ and fortran
25 compiler we are using as well as the name magling stuff.
26 FortranCInterface_HEADER(FC.h MACRO_NAMESPACE "FC_" FROM_LIBRARY blas[daxpy])
27
28
29
30
31 # Optional libraries: If we can find these, we will build with them
32 # Look for OpenBabel libraries
33 find_package(OpenBabel)
34 #Look for QHULL Libraries
35 find_package(QHULL)
36
37
38 #Figure out MPI stuff
39
40
41 #Add executables for build
42 set (PROGRAMS openmd Dump2XYZ simpleBuilder StaticProps DynamicProps
43 randomBuilder nanoparticleBuilder thermalizer atom2md Hydro)
44 # Example of how to set core libraries
45 #set(CORELIBS ${GLUT_LIBRARY} ${OPENGL_LIBRARY} m)
46
47 foreach(program ${PROGRAMS})
48 add_executable(${program} ${program}.cpp)
49 target_link_libraries(${program} ${CORELIBS})
50 endforeach(program)
51
52
53
54
55 #Add subirectories for build
56
57
58 add_subdirectory(src)