You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
851 B
42 lines
851 B
2 years ago
|
TRIBITS_SUBPACKAGE(Nemesis)
|
||
|
|
||
|
SET(NEMESIS_VERSION_MAJOR "5")
|
||
|
SET(NEMESIS_VERSION_MINOR "15")
|
||
|
SET(NEMESIS_VERSION_PATCH "0")
|
||
|
SET(NEMESIS_VERSION "${NEMESIS_VERSION_MAJOR}.${NEMESIS_VERSION_MINOR}")
|
||
|
SET(NEMESIS_VERSION_FULL "${NEMESIS_VERSION}.${NEMESIS_VERSION_PATCH}")
|
||
|
|
||
|
SET(HEADERS "ne_nemesisI.h")
|
||
|
|
||
|
CONFIGURE_FILE(
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/nemesis_cfg.h.in
|
||
|
${CMAKE_CURRENT_BINARY_DIR}/nemesis_cfg.h
|
||
|
@ONLY IMMEDIATE)
|
||
|
|
||
|
TRIBITS_INCLUDE_DIRECTORIES(
|
||
|
"${CMAKE_CURRENT_SOURCE_DIR}"
|
||
|
"${CMAKE_CURRENT_BINARY_DIR}"
|
||
|
)
|
||
|
|
||
|
SET(SOURCES
|
||
|
nemesis_wrapper.c
|
||
|
)
|
||
|
|
||
|
TRIBITS_ADD_LIBRARY(
|
||
|
nemesis
|
||
|
HEADERS ${HEADERS}
|
||
|
SOURCES ${SOURCES}
|
||
|
)
|
||
|
|
||
|
IF (${PACKAGE_NAME}_ENABLE_TESTS)
|
||
|
TRIBITS_ADD_EXECUTABLE_AND_TEST(
|
||
|
ne_ctest_wrap
|
||
|
NAME ne_ctest_wrap
|
||
|
SOURCES ne_ctest_wrap.c
|
||
|
LINKER_LANGUAGE C
|
||
|
NUM_MPI_PROCS 1
|
||
|
)
|
||
|
ENDIF()
|
||
|
|
||
|
TRIBITS_SUBPACKAGE_POSTPROCESS()
|