forked from MolSSI-MDI/MDI_Library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
32 lines (27 loc) · 758 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
32 lines (27 loc) · 758 Bytes
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
cmake_minimum_required(VERSION 3.5)
option(language "language")
option(libtype "libtype")
option(mpi "on or off" ON)
option(python_package "on or off" OFF)
set(use_C "")
set(use_Fortran "")
set(use_Python "")
if( NOT language )
# By default, compile for all languages
set(use_C "C")
set(use_Fortran "Fortran")
set(use_Python "Python")
elseif( language STREQUAL "C" )
set(use_C "C")
elseif( language STREQUAL "Fortran" )
set(use_C "C")
set(use_Fortran "Fortran")
elseif( language STREQUAL "Python" )
set(use_C "C")
set(use_Python "")
else()
message( FATAL_ERROR "Language not supported. Supported languages: C, Fortran, Python" )
endif()
project(MDI
LANGUAGES ${use_C} ${use_Fortran})
add_subdirectory(MDI_Library)