-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
56 lines (46 loc) · 1.52 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
46
47
48
49
50
51
52
53
54
55
56
cmake_minimum_required(VERSION 2.8)
project(BDMPI)
set(GKLIB_PATH "GKlib" CACHE PATH "path to GKlib")
set(SBMA_PATH "sbma" CACHE PATH "path to SBMA")
set(SHARED FALSE CACHE BOOL "build a shared library")
set(HINSTALL_PATH "bdmpi" CACHE PATH "header installation subdirectory")
set(LINSTALL_PATH "bdmpi" CACHE PATH "library installation subdirectory")
if(MSVC)
set(BDMP_INSTALL FALSE)
else()
set(BDMP_INSTALL TRUE)
endif()
# Configure library type.
if(SHARED)
set(BDMP_LIBRARY_TYPE SHARED)
else()
set(BDMP_LIBRARY_TYPE STATIC)
endif(SHARED)
include(${GKLIB_PATH}/GKlibSystem.cmake)
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pg")
# Collect the source files in the common directory
set(COMMON_PATH "common" CACHE PATH "path to common")
file(GLOB common_sources ${COMMON_PATH}/*.c)
# Add include directories.
include_directories(${GKLIB_PATH})
include_directories(${SBMA_PATH}/include)
include_directories(include)
# Recursively look for CMakeLists.txt in subdirs.
add_subdirectory(${GKLIB_PATH})
add_subdirectory("include")
add_subdirectory("libbdmp")
add_subdirectory("bdmprun")
#add_subdirectory("test")
add_subdirectory("scripts")
add_subdirectory("apps/bdmp") # DISTRM this is for my grep -v script
#add_subdirectory("apps/bdmp-oc") # DISTRM
#add_subdirectory("apps/oc") # DISTRM
#add_subdirectory("apps/mpi") # DISTRM
#add_subdirectory("apps/misc") # DISTRM
# SBMA stuff
set (
USE_THREAD ON CACHE BOOL
"Enable thread-safety components of SBMA library"
FORCE
)
add_subdirectory(sbma)