| 1 |
# This will build one or two versions of epu. |
| 2 |
# In a MPI-enabled build, it will build 'epu' which is a serial application and 'pepu' which is a parallel-enabled epu |
| 3 |
# In a serial, non-MPI-enabled build, it will only build 'epu'. |
| 4 |
# On some platforms, both applications may perform the same if run in serial; however, some platforms require |
| 5 |
# parallel applications to be run on a compute-partition. We used to just build a parallel-enabled epu |
| 6 |
# when MPI was enabled, but this caused issues for users on those platforms which would not allow a |
| 7 |
# parallel application to be run on a non-compute partition, so now we build two versions... |
| 8 |
|
| 9 |
TRIBITS_SUBPACKAGE(Cpup) |
| 10 |
|
| 11 |
TRIBITS_INCLUDE_DIRECTORIES( |
| 12 |
"${CMAKE_CURRENT_SOURCE_DIR}" |
| 13 |
) |
| 14 |
|
| 15 |
SET(HEADERS "") |
| 16 |
APPEND_GLOB(SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/CP_SystemInterface.C) |
| 17 |
|
| 18 |
ASSERT_DEFINED(TPL_ENABLE_CGNS) |
| 19 |
IF (TPL_ENABLE_CGNS) |
| 20 |
TRIBITS_ADD_EXECUTABLE( |
| 21 |
cpup |
| 22 |
NOEXEPREFIX |
| 23 |
NOEXESUFFIX |
| 24 |
SOURCES ${SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/cpup.C |
| 25 |
INSTALLABLE |
| 26 |
) |
| 27 |
ENDIF() |
| 28 |
|
| 29 |
TRIBITS_SUBPACKAGE_POSTPROCESS() |