Skip to content

Commit 1a50240

Browse files
committed
first cmake config
1 parent e648fbd commit 1a50240

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
**/_build/
2+
**/build/

CMakeLists.txt

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
CMAKE_MINIMUM_REQUIRED(VERSION 3.2)
2+
3+
PROJECT(md VERSION 0.1 LANGUAGES Fortran)
4+
5+
SET (CMAKE_Fortran_FLAGS_RELEASE " -O4 -finit-local-zero -ffpe-trap=invalid,zero,overflow -g ")
6+
SET (CMAKE_Fortran_FLAGS_DEBUG " -O0 -g ")
7+
8+
SET( MD_SRC
9+
src/md.f90
10+
src/sub_calc_distance.f90
11+
src/sub_helper.f90
12+
)
13+
14+
ADD_EXECUTABLE(md ${MD_SRC})

0 commit comments

Comments
 (0)