-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (34 loc) · 1.22 KB
/
CMakeLists.txt
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
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 2.8.12...3.6.0)
project(MDT LANGUAGES C)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake_modules)
set(MDT_VERSION "git")
# Use @rpath on Mac by default
if(POLICY CMP0042)
cmake_policy(SET CMP0042 NEW)
endif(POLICY CMP0042)
# Use consistent SWIG target names across all supported cmake versions
if(POLICY CMP0078)
cmake_policy(SET CMP0078 OLD)
endif(POLICY CMP0078)
# Quiet warning about UseSWIG honoring SWIG_MODULE_NAME (which we don't use)
if(POLICY CMP0086)
cmake_policy(SET CMP0086 NEW)
endif(POLICY CMP0086)
enable_testing()
include(GNUInstallDirs)
if (NOT DEFINED CMAKE_INSTALL_PYTHONDIR)
set(CMAKE_INSTALL_PYTHONDIR "${CMAKE_INSTALL_LIBDIR}/python/site_packages")
endif()
find_package(HDF5 1.8 REQUIRED COMPONENTS C HL)
set(EXTRA_LIBS ${EXTRA_LIBS} ${HDF5_LIBRARIES} ${HDF5_HL_LIBRARIES})
include_directories(${HDF5_INCLUDE_DIRS})
find_package(GLIB REQUIRED)
set(EXTRA_LIBS ${EXTRA_LIBS} ${GLIB_LIBRARIES})
include_directories(${GLIB_INCLUDE_DIRS})
find_package(MODELLER REQUIRED)
set(EXTRA_LIBS ${EXTRA_LIBS} ${MODELLER_LIBRARIES})
include_directories(${MODELLER_INCLUDE_DIRS})
add_subdirectory(src)
add_subdirectory(pyext)
add_subdirectory(data)
add_subdirectory(test)