CMakeLists.txt 1.79 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# mud 

set( FSRCS 
  )

Set( XSRCS 
  )

Set( CSRCS
  src/mud.c src/mud_misc.c src/mud_all.c src/mud_new.c src/mud_gen.c 
  src/mud_tri_ti.c src/mud_encode.c 
  src/mud_friendly.c src/fmud_friendly.c src/mud_fort.c 
  )
include_directories(mud/src)
15
add_definitions(-Df2cFortran -Wno-implicit-function-declaration)
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

  # FFLAGS  = -g -malign-double -fno-second-underscore -fno-automatic -frecord-marker=4
# MACROS  = -Dgfortran -Dunix
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -g -malign-double -fno-second-underscore -fno-automatic -frecord-marker=4 -Dgfortran -Dunix ")

#ifeq (${HAVE_CERNLIB},YES)
#  KERNLIB = $(CERN_DIR)/libkernlib.a
#  PACKLIB = $(CERN_DIR)/libpacklib.a
#else
#  KERNLIB =
#  PACKLIB =
#endif
#
#GPLOT_LIB   = $(GPLOT_DIR)/libgplot.a
#MUD_LIB     = $(MUD_DIR)/lib/libmud.a
#PHYSICA_LIB = $(PHYSICA_DIR)/physica.a
#
#INCLUDES    = -I/usr/X11R6/include -I/usr/local/include -I/$(HOME)/include
#OTHER_LIBS  = -L/usr/lib -lX11  -L$(HOME)/lib64 -lgd $(HOME)/lib64/libgd.a -lpng -lz -lreadline -lncurses -lnsl -lpthread

enable_language( C Fortran )

add_library(mudlib ${FSRCS} ${XSRCS} ${CSRCS})

#physicalib gplot mud kernlib packlib )
   

#physica :       $(PHYSICA_LIB)
#                $(FORTRAN) -o $@ -Wl,-u,MAIN__ \
#                $(PHYSICA_LIB) $(MUD_LIB) $(GPLOT_LIB) $(KERNLIB) $(PACKLIB) $(OTHER_LIBS)

#ifeq (${HAVE_CERNLIB},YES)
#  XSRCS = $(PHYSICA_DIR)/src/physica_minuit.F \
#	  $(PHYSICA_DIR)/src/map_hbook_dum.F \
#	  $(PHYSICA_DIR)/src/rstr_hbook.F
#else
#  XSRCS = $(PHYSICA_DIR)/src/cern_dum.F
#endif
#
#CSRCS = $(PHYSICA_DIR)/src/physica_malloc.c \
#        $(PHYSICA_DIR)/src/physica_free.c \
#        $(PHYSICA_DIR)/src/x_resize_window.c \
#        $(PHYSICA_DIR)/src/digitize_png.c \
#        $(PHYSICA_DIR)/src/readline_wrapper.c \
#        $(PHYSICA_DIR)/src/linux/rstr_mudc.c