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