| 12 |
|
# cmake modules that are needed to build oopse |
| 13 |
|
set (CMAKE_MODULE_PATH ${OpenMD_SOURCE_DIR}/cmake/modules) |
| 14 |
|
|
| 15 |
+ |
enable_language(CXX C) |
| 16 |
|
|
| 16 |
– |
enable_language( Fortran C CXX) |
| 17 |
|
|
| 18 |
– |
|
| 19 |
– |
|
| 20 |
– |
# Figure out compiler stuff. We need to know which c, c++ and fortran |
| 21 |
– |
# compiler we are using as well as the name magling stuff. |
| 22 |
– |
INCLUDE(FortranCInterface) |
| 23 |
– |
FortranCInterface_VERIFY(CXX) |
| 24 |
– |
FortranCInterface_HEADER( ${PROJECT_SOURCE_DIR}/src/config_f.h |
| 25 |
– |
MACRO_NAMESPACE "FC_" |
| 26 |
– |
SYMBOL_NAMESPACE "FC_") |
| 27 |
– |
|
| 28 |
– |
|
| 29 |
– |
|
| 18 |
|
# Optional libraries: If we can find these, we will build with them |
| 19 |
|
# Look for OpenBabel libraries |
| 20 |
|
find_package(OpenBabel2) |
| 95 |
|
check_include_file ("sys/systemcfg.h" HAVE_SYS_SYSTEMCFG_H) |
| 96 |
|
check_include_file ("sys/table.h" HAVE_SYS_TABLE_H) |
| 97 |
|
|
| 110 |
– |
|
| 111 |
– |
|
| 98 |
|
find_path (HAVE_SYS_STAT_H stat.h |
| 99 |
|
PATHS ${include_locations} |
| 100 |
|
PATH_SUFFIXES sys |