mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-06 22:55:08 +00:00
[ADD] CMake compilation for gedot test
This commit is contained in:
@@ -29,26 +29,26 @@ set(PSBLAS_LIBS psblas::util psblas::prec psblas::base)
|
||||
|
||||
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/geaxpby/CMakeLists.txt)
|
||||
#include(${CMAKE_CURRENT_LIST_DIR}/gedor/CMakeLists.txt)
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/gedot/CMakeLists.txt)
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/spmm/CMakeLists.txt)
|
||||
|
||||
# Create executables
|
||||
add_executable(psb_geaxpby_test ${geaxpby_source_files})
|
||||
#add_executable(psb_gedot ${GEDOT_SOURCES})
|
||||
add_executable(psb_gedot_test ${gedot_source_files})
|
||||
add_executable(psb_spmm_test ${spmm_source_files})
|
||||
|
||||
# Link the necessary libraries
|
||||
target_link_libraries(psb_geaxpby_test ${PSBLAS_LIBS})
|
||||
#target_link_libraries(psb_gedot psblas::util psblas::prec psblas::base)
|
||||
target_link_libraries(psb_gedot_test ${PSBLAS_LIBS})
|
||||
target_link_libraries(psb_spmm_test ${PSBLAS_LIBS})
|
||||
|
||||
# Set output directory
|
||||
set_target_properties(psb_geaxpby_test PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY ${EXEDIR}
|
||||
)
|
||||
#set_target_properties(psb_gedot PROPERTIES
|
||||
# RUNTIME_OUTPUT_DIRECTORY ${EXEDIR}
|
||||
#)
|
||||
set_target_properties(psb_gedot_test PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY ${EXEDIR}
|
||||
)
|
||||
set_target_properties(psb_spmm_test PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY ${EXEDIR}
|
||||
)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
set(PSB_gedot_source_files
|
||||
psb_gedot_test.f90
|
||||
gedot.f90
|
||||
)
|
||||
foreach(file IN LISTS PSB_gedot_source_files)
|
||||
list(APPEND gedot_source_files ${CMAKE_CURRENT_LIST_DIR}/${file})
|
||||
endforeach()
|
||||
|
||||
Reference in New Issue
Block a user