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

Commit

Permalink
Changed FOOEXE to SWIFTEST_DRIVER
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Nov 17, 2022
1 parent 0aedbe6 commit c24116b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ ENDIF(FCNAME STREQUAL "pgf90")
############################################################

# Define the executable name
SET(FOOEXE swiftest_driver)
SET(SWIFTEST_DRIVER swiftest_driver)

# Define some directories
SET(SRC ${CMAKE_SOURCE_DIR}/src)
Expand Down
12 changes: 6 additions & 6 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,26 +104,26 @@ SET(FOO_src
)

# Define the executable in terms of the source files
ADD_EXECUTABLE(${FOOEXE} ${FOO_src})
ADD_EXECUTABLE(${SWIFTEST_DRIVER} ${FOO_src})

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

# Uncomment if you need to link to BLAS and LAPACK
TARGET_LINK_LIBRARIES(${FOOEXE} ${NETCDF_LIBRARIES} ${NETCDF_FORTRAN_LIBRARIES})
TARGET_LINK_LIBRARIES(${SWIFTEST_DRIVER} ${NETCDF_LIBRARIES} ${NETCDF_FORTRAN_LIBRARIES})

# Uncomment if you have parallization
IF(USE_OPENMP)
SET_TARGET_PROPERTIES(${FOOEXE} PROPERTIES
SET_TARGET_PROPERTIES(${SWIFTEST_DRIVER} PROPERTIES
COMPILE_FLAGS "${OpenMP_Fortran_FLAGS}"
LINK_FLAGS "${OpenMP_Fortran_FLAGS}")
ELSEIF(USE_MPI)
SET_TARGET_PROPERTIES(${FOOEXE} PROPERTIES
SET_TARGET_PROPERTIES(${SWIFTEST_DRIVER} 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})
TARGET_LINK_LIBRARIES(${SWIFTEST_DRIVER} ${MPI_Fortran_LIBRARIES})
ENDIF(USE_OPENMP)


Expand All @@ -137,4 +137,4 @@ IF(WIN32)
ELSE()
SET(CMAKE_INSTALL_PREFIX /usr/local)
ENDIF(WIN32)
INSTALL(TARGETS ${FOOEXE} RUNTIME DESTINATION bin)
INSTALL(TARGETS ${SWIFTEST_DRIVER} RUNTIME DESTINATION bin)

0 comments on commit c24116b

Please sign in to comment.