Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
deleted libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
cwishard committed Oct 13, 2022
1 parent 8b27a05 commit 65f8a65
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 33 deletions.
7 changes: 2 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ ENDIF(FCNAME STREQUAL "pgf90")
# Define the executable name
SET(FOOEXE swiftest_driver)

# Define the library name
SET(BARLIB libswiftest)

# Define some directories
SET(SRC ${CMAKE_SOURCE_DIR}/src)
SET(LIB ${CMAKE_SOURCE_DIR}/lib)
Expand Down Expand Up @@ -79,8 +76,8 @@ SET(WHM ${SRC}/whm)
# Have the .mod files placed in the lib folder
SET(CMAKE_Fortran_MODULE_DIRECTORY ${LIB})

# The source for the Swiftest library and have it placed in the lib folder
ADD_SUBDIRECTORY(${BARLIB} ${LIB})
# The source for the FOO binary and have it placed in the bin folder
ADD_SUBDIRECTORY(${EXE} ${BIN})

# The source for the EXE binary and have it placed in the bin folder
ADD_SUBDIRECTORY(${FOOEXE} ${BIN})
Expand Down
3 changes: 0 additions & 3 deletions lib/CMakeLists.txt

This file was deleted.

25 changes: 0 additions & 25 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,31 +97,6 @@ SET(FOO_src ${DISCARD}/discard.f90
# Define the executable in terms of the source files
ADD_EXECUTABLE(${FOOEXE} ${FOO_src})

#####################################################
# Add the needed libraries and special compiler flags
#####################################################

# This links foo to the bar library
TARGET_LINK_LIBRARIES(${FOOEXE} ${BARLIB})

# Uncomment if you need to link to BLAS and LAPACK
#TARGET_LINK_LIBRARIES(${FOOEXE} ${BLAS_LIBRARIES}
# ${LAPACK_LIBRARIES}
# ${CMAKE_THREAD_LIBS_INIT})

# Uncomment if you have parallization
IF(USE_OPENMP)
SET_TARGET_PROPERTIES(${FOOEXE} PROPERTIES
COMPILE_FLAGS "${OpenMP_Fortran_FLAGS}"
LINK_FLAGS "${OpenMP_Fortran_FLAGS}")
ELSEIF(USE_MPI)
SET_TARGET_PROPERTIES(${FOOEXE} PROPERTIES
COMPILE_FLAGS "${MPI_Fortran_COMPILE_FLAGS}"
LINK_FLAGS "${MPI_Fortran_LINK_FLAGS}")
INCLUDE_DIRECTORIES(${MPI_Fortran_INCLUDE_PATH})
TARGET_LINK_LIBRARIES(${FOOEXE} ${MPI_Fortran_LIBRARIES})
ENDIF(USE_OPENMP)

#####################################
# Tell how to install this executable
#####################################
Expand Down

0 comments on commit 65f8a65

Please sign in to comment.