#/////////////////// P /// L /// A /// S /// M /// A //////////////////
#///  PLASMA - version 2.1.0                                       ///
#///  Release Date: November, 15th 2009                            ///
#/// PLASMA is a software package provided by Univ. of Tennessee,  ///
#/// Univ. of California Berkeley and Univ. of Colorado Denver     ///
#//////////////////////////////////////////////////////////////////////

INCLUDE( ${CMAKE_SOURCE_DIR}/GenerateZDCS.cmake OPTIONAL )

add_executable( testing_dgesv testing_dgesv.c )
PLASMA_SETUP_C_MAIN( testing_dgesv )

add_executable( testing_dsgesv testing_dsgesv.c )
PLASMA_SETUP_C_MAIN( testing_dsgesv )

add_executable( testing_dgels testing_dgels.c )
PLASMA_SETUP_C_MAIN( testing_dgels )

add_executable( testing_dposv testing_dposv.c )
PLASMA_SETUP_C_MAIN( testing_dposv )

add_executable( testing_dgemm testing_dgemm.c )
PLASMA_SETUP_C_MAIN( testing_dgemm )

add_executable( testing_sgesv testing_sgesv.c )
PLASMA_SETUP_C_MAIN( testing_sgesv )

add_executable( testing_sgels testing_sgels.c )
PLASMA_SETUP_C_MAIN( testing_sgels )

add_executable( testing_sposv testing_sposv.c )
PLASMA_SETUP_C_MAIN( testing_sposv )

add_executable( testing_sgemm testing_sgemm.c )
PLASMA_SETUP_C_MAIN( testing_sgemm )

add_executable( testing_cgesv testing_cgesv.c )
PLASMA_SETUP_C_MAIN( testing_cgesv )

add_executable( testing_cgels testing_cgels.c )
PLASMA_SETUP_C_MAIN( testing_cgels )

add_executable( testing_cposv testing_cposv.c )
PLASMA_SETUP_C_MAIN( testing_cposv )

add_executable( testing_cgemm testing_cgemm.c )
PLASMA_SETUP_C_MAIN( testing_cgemm )

add_executable( testing_zgesv testing_zgesv.c )
PLASMA_SETUP_C_MAIN( testing_zgesv )

add_executable( testing_zcgesv testing_zcgesv.c )
PLASMA_SETUP_C_MAIN( testing_zcgesv )

add_executable( testing_zgels testing_zgels.c )
PLASMA_SETUP_C_MAIN( testing_zgels )

add_executable( testing_zposv testing_zposv.c )
PLASMA_SETUP_C_MAIN( testing_zposv )

add_executable( testing_zgemm testing_zgemm.c )
PLASMA_SETUP_C_MAIN( testing_zgemm )

add_subdirectory(lin)

## INSTALL( TARGETS testing_sposv testing_dposv testing_cposv testing_zposv testing_sgesv testing_dgesv testing_cgesv testing_zgesv testing_sgels testing_dgels testing_cgels testing_zgels testing_dsgesv testing_zcgesv testing_dgemm testing_sgemm testing_cgemm testing_zgemm ARCHIVE DESTINATION lib LIBRARY DESTINATION lib RUNTIME DESTINATION bin )
## INSTALL( PROGRAMS plasma_testing.py DESTINATION ${EXECUTABLE_OUTPUT_PATH} )

INSTALL( TARGETS testing_sposv testing_dposv testing_cposv testing_zposv testing_sgesv testing_dgesv testing_cgesv testing_zgesv testing_sgels testing_dgels testing_cgels testing_zgels testing_dsgesv testing_zcgesv testing_dgemm testing_sgemm testing_cgemm testing_zgemm DESTINATION testing )
INSTALL( PROGRAMS plasma_testing.py DESTINATION testing )

SET (testing_SRCS 
    testing_dsgesv.c testing_zcgesv.c
    testing_zgels.c testing_sgels.c testing_dgels.c testing_cgels.c 
    testing_zgemm.c testing_sgemm.c testing_dgemm.c testing_cgemm.c 
    testing_zgesv.c testing_sgesv.c testing_dgesv.c testing_cgesv.c 
    testing_zposv.c testing_sposv.c testing_dposv.c testing_cposv.c )

INSTALL( FILES ${testing_SRCS} CMakeLists.txt Makefile DESTINATION testing )




