Commit 3631717a authored by Whitney Armstrong's avatar Whitney Armstrong

new file: CMakeLists.txt

parent 21e8efbd
# 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)
add_definitions(-DFORT -Wno-implicit-function-declaration)
# 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment