Move out eompi test folder.
This commit is contained in:
parent
4df7894ae1
commit
f6d5ac3c6b
13 changed files with 17 additions and 17 deletions
54
eompi/test/CMakeLists.txt
Normal file
54
eompi/test/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
###############################################################################
|
||||
##
|
||||
## CMakeLists file for eo/test/mpi
|
||||
##
|
||||
###############################################################################
|
||||
|
||||
######################################################################################
|
||||
### 1) Include the sources
|
||||
######################################################################################
|
||||
|
||||
message("EO SOURCE DIR: ${EO_SRC_DIR}")
|
||||
message("OMPI: ${MPI_DIR}")
|
||||
|
||||
include_directories(${MPI_DIR}/include)
|
||||
include_directories(${EO_SRC_DIR}/src)
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
######################################################################################
|
||||
### 2) Specify where CMake can find the libraries
|
||||
######################################################################################
|
||||
|
||||
link_directories(${EO_BIN_DIR}/lib)
|
||||
link_directories(${MPI_DIR}/lib)
|
||||
|
||||
######################################################################################
|
||||
### 3) Define your targets and link the librairies
|
||||
######################################################################################
|
||||
|
||||
set (TEST_LIST
|
||||
t-mpi-parallelApply
|
||||
t-mpi-wrapper
|
||||
t-mpi-multipleRoles
|
||||
t-mpi-eval
|
||||
t-mpi-multistart
|
||||
t-mpi-distrib-exp
|
||||
)
|
||||
|
||||
foreach (test ${TEST_LIST})
|
||||
set ("T_${test}_SOURCES" "${test}.cpp")
|
||||
endforeach (test)
|
||||
|
||||
set(CMAKE_CXX_COMPILER "mpicxx")
|
||||
add_definitions(-DWITH_MPI)
|
||||
|
||||
if(ENABLE_CMAKE_TESTING)
|
||||
foreach (test ${TEST_LIST})
|
||||
add_executable(${test} ${T_${test}_SOURCES})
|
||||
add_test(${test} ${test})
|
||||
target_link_libraries(${test} eoutils eompi eoserial eo)
|
||||
install(TARGETS ${test} RUNTIME DESTINATION share/eo/test COMPONENT test)
|
||||
endforeach (test)
|
||||
endif()
|
||||
|
||||
######################################################################################
|
||||
Loading…
Add table
Add a link
Reference in a new issue