###
#
# @file          : CMakeLists.txt
#
# @description   : Project MORSE
#
# @version       :
# @created by    : Cedric Castagnede
# @creation date : 24-01-2012
# @last modified : lun. 19 mars 2012 17:30:53 CET
#
###

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
INCLUDE(RulesPrecisions)

# Generate the morse headers for all possible precisions
# ------------------------------------------------------
SET(QUARKBLAS_HEADERS_GENERATED "")
SET(ZHDR 
    quark_zblas.h
    quark_zcblas.h
)

precisions_rules_py(QUARKBLAS_HEADERS_GENERATED "${ZHDR}"
                    PRECISIONS "${MAGMA_MORSE_PRECISION}"
                    DICTIONARY "MORSE")

# Define the list of headers
# --------------------------
SET(QUARKBLAS_HEADERS
    core_blas_dag.h
    morse_quark.h
    quark_blas.h
    ${QUARKBLAS_HEADERS_GENERATED}
    )

# Force generation of headers
# ---------------------------
ADD_CUSTOM_TARGET(quarkblas_include ALL SOURCES ${QUARKBLAS_HEADERS})

# installation
# ------------
INSTALL(FILES ${MORSE_HEADERS} 
        DESTINATION include)

###
### END CMakeLists.txt
###
