File: CMakeLists.txt

package info (click to toggle)
sparskit 2.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 4,348 kB
  • sloc: fortran: 15,253; makefile: 260; sh: 136; ansic: 76
file content (76 lines) | stat: -rw-r--r-- 1,737 bytes parent folder | download | duplicates (4)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
cmake_minimum_required(VERSION 2.6)

# Input directories must have CMakeLists.txt.
cmake_policy(SET CMP0014 NEW)


project (sparskit)


set(STATIC_LIBRARY_FLAGS "-rcv")
set(CMAKE_Fortran_FLAGS " -g -ffixed-line-length-none -ffree-line-length-none")
#set(CMAKE_Fortran_FLAGS " -c -g -Wall -ffixed-line-length-none -ffree-line-length-none")

enable_language(Fortran)


# Create a library called "skit".
add_library (skit
     BLASSM/blassm.f
     BLASSM/matvec.f
     FORMATS/formats.f
     FORMATS/unary.f
     INFO/infofun.f
     INOUT/inout.f
     ITSOL/ilut.f
     ITSOL/iters.f
     MATGEN/FDIF/genmat.f
     MATGEN/FEM/elmtlib2.f
     MATGEN/FEM/femgen.f
     MATGEN/FEM/meshes.f
     MATGEN/MISC/sobel.f
     MATGEN/MISC/zlatev.f
     ORDERINGS/ccn.f
     ORDERINGS/color.f
     ORDERINGS/dsepart.f
)

SET_TARGET_PROPERTIES(skit PROPERTIES
  LINKER_LANGUAGE Fortran
  SOVERSION 2.0
  VERSION  2.0.0
)

install(TARGETS skit
  RUNTIME DESTINATION bin COMPONENT RuntimeLibraries
  LIBRARY DESTINATION lib COMPONENT RuntimeLibraries
  ARCHIVE DESTINATION lib COMPONENT Development
)


OPTION(BUILD_TESTING "Enable this to perform testing of sparskit" ON)

IF(BUILD_TESTING)
 # non-library and unsupported objects
 add_library (skit_helper
  ITSOL/itaux.f
  MATGEN/FDIF/functns.f
  MATGEN/FEM/functns2.f
  UNSUPP/BLAS1/blas1.f
  UNSUPP/MATEXP/exppro.f
  UNSUPP/MATEXP/phipro.f
  UNSUPP/PLOTS/psgrd.f
  UNSUPP/PLOTS/texgrid1.f
  UNSUPP/PLOTS/texplt1.f
 )
 add_subdirectory (BLASSM)
 add_subdirectory (FORMATS)
 add_subdirectory (INFO)
 add_subdirectory (INOUT)
 add_subdirectory (ITSOL)
 add_subdirectory (MATGEN/FDIF)
 add_subdirectory (MATGEN/FEM)
 add_subdirectory (MATGEN/MISC)
 add_subdirectory (UNSUPP/MATEXP)
ENDIF(BUILD_TESTING)