-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
50 lines (39 loc) · 1.13 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
cmake_minimum_required(VERSION 3.13.4)
project(ma_libs)
set (PROJECT_VERSION "1.0" )
project(${PROJECT_NAME} VERSION ${PROJECT_VERSION})
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules")
# used in cpp/libnn linker
set(CPP_LIBALG_LAPACK_BUILT_FROM_ROOT ON)
# C++ Libraries
if(CPP_LIBALG_LAPACK OR CPP_LIBNN OR BUILDSUITE)
add_subdirectory( cpp/libalg_lapack/ )
endif()
if(CPP_LIBNN OR BUILDSUITE)
add_subdirectory( cpp/libnn/ )
endif()
if(CPP_LIBGRAPHIC_ENGINE OR BUILDSUITE)
add_subdirectory( cpp/libgraphic_engine/ )
endif()
if(CPP_PYTHON_BINDINGS)
add_subdirectory( cpp/python_bindings/ )
endif()
if(CPP_FORTRAN_BINDINGS)
add_subdirectory( cpp/fortran_bindings/ )
endif()
# Fortran Libraries
if(F_LIBHDF5UTILS OR BUILDSUITE)
add_subdirectory( fortran/libhdf5utils/ )
endif()
if(F_CPP_BINDINGS)
add_subdirectory( fortran/cpp_bindings/ )
endif()
if(F_LIBALGEBRA OR BUILDSUITE)
add_subdirectory( fortran/libalgebra/ )
endif()
if(F_LIBALGO OR BUILDSUITE)
add_subdirectory( fortran/libalgo/ )
endif()
if(F_LIBTEST OR BUILDSUITE)
add_subdirectory( fortran/libtest/ )
endif()