forked from DARcorporation/xfoil-python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
44 lines (42 loc) · 1.2 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
cmake_minimum_required(VERSION 3.10)
project(xfoil Fortran)
enable_language(Fortran)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} \
-O \
-fbounds-check \
-finit-real=inf \
-ffpe-trap=invalid,zero \
-fdefault-real-8")
set(SRC_DIR "src/fortran")
add_library(xfoil SHARED
# Include modules
${SRC_DIR}/i_pindex.f90
${SRC_DIR}/i_xfoil.f90
${SRC_DIR}/i_blpar.f90
${SRC_DIR}/i_circle.f90
${SRC_DIR}/i_xbl.f90
# Shared modules to avoid circular dependencies
${SRC_DIR}/s_xbl.f90
${SRC_DIR}/s_xoper.f90
${SRC_DIR}/s_xfoil.f90
# Main modules
${SRC_DIR}/m_aread.f90
${SRC_DIR}/m_iopol.f90
${SRC_DIR}/m_naca.f90
${SRC_DIR}/m_sort.f90
${SRC_DIR}/m_spline.f90
${SRC_DIR}/m_userio.f90
${SRC_DIR}/m_xbl.f90
${SRC_DIR}/m_xblsys.f90
${SRC_DIR}/m_xfoil.f90
${SRC_DIR}/m_xgdes.f90
${SRC_DIR}/m_xgeom.f90
${SRC_DIR}/m_xmdes.f90
${SRC_DIR}/m_xoper.f90
${SRC_DIR}/m_xpanel.f90
${SRC_DIR}/m_xpol.f90
${SRC_DIR}/m_xqdes.f90
${SRC_DIR}/m_xsolve.f90
${SRC_DIR}/m_xutils.f90
# API
${SRC_DIR}/api.f90)