Commit cb0e5de7 authored by Whitney Armstrong's avatar Whitney Armstrong

modified: CMakeLists.txt

	deleted:    gplot.tar.gz
	deleted:    mud.tar.gz
	deleted:    physica-v2.92.tar.gz
	new file:   physica/physica.sh.in
parent 3c785b9d
cmake_minimum_required (VERSION 3.6)
cmake_minimum_required (VERSION 3.0)
project (PHYSICA C Fortran)
set(CMAKE_MODULE_PATH
......@@ -35,38 +35,32 @@ add_subdirectory (gplot)
add_subdirectory (mud)
add_subdirectory (physica)
# FFLAGS = -g -malign-double -fno-second-underscore -fno-automatic -frecord-marker=4
# MACROS = -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
configure_file (
"${PROJECT_SOURCE_DIR}/physica/physica.sh.in"
"${PROJECT_BINARY_DIR}/physica.sh"
)
add_executable(Physica physica/src/phys_main.F )
target_link_libraries(Physica physicalib Threads::Threads ${PACKLIB} ${KERNLIB} ${X11_LIBRARIES} mudlib gplot ${GD_LIBRARY} ${Readline_LIBRARY})
add_executable(Physica-bin physica/src/phys_main.F )
target_link_libraries(Physica-bin physicalib Threads::Threads ${PACKLIB} ${KERNLIB} ${X11_LIBRARIES} mudlib gplot ${GD_LIBRARY} ${Readline_LIBRARY})
#install(Physica
install(PROGRAMS ${PROJECT_BINARY_DIR}/Physica
DESTINATION bin
RENAME physica
)
# LIBRARY DESTINATION lib
# ARCHIVE DESTINATION lib/static)
install( TARGETS Physica-bin
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib/static )
install( FILES physica/physica.hlp physica/physica.hli DESTINATION bin )
install( FILES gplot/vaxfont.dat
DESTINATION share/physica )
install( PROGRAMS "${PROJECT_BINARY_DIR}/physica.sh"
DESTINATION bin
RENAME physica
)
install(FILES gplot/vaxfont.dat DESTINATION share/physica)
#$add_executable(physica physicalib gplot mud kernlib packlib )
......
File deleted
#!/bin/sh
#
# shell script to set environment variables and run physica
#
# PHYSICA_DIR is where the physica executable, help and news files are located
export PHYSICA_DIR=@CMAKE_INSTALL_PREFIX@/bin
#
# TRIUMF_FONTS is where the vaxfont.dat file is located
export TRIUMF_FONTS=@CMAKE_INSTALL_PREFIX@/share/physica
#
# run the physica program
$PHYSICA_DIR/Physica-bin
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