set( SIXTRACKLIB_COMMON_BE_RF_MULTIPOLE_C99_HEADERS
)

set( SIXTRACKLIB_COMMON_BE_RF_MULTIPOLE_CXX_HEADERS
)

if( SIXTRACKLIB_COMMON_BE_RF_MULTIPOLE_C99_HEADERS )
    string( REGEX REPLACE "([^;]+)" "be_rfmultipole/\\1" LOCAL_C99_HEADERS
            "${SIXTRACKLIB_COMMON_BE_RF_MULTIPOLE_C99_HEADERS}" )

    set(  SIXTRACKLIB_COMMON_C99_HEADERS
        ${SIXTRACKLIB_COMMON_C99_HEADERS}
        ${LOCAL_C99_HEADERS} PARENT_SCOPE )
endif()

if( SIXTRACKLIB_COMMON_BE_RF_MULTIPOLE_CXX_HEADERS )
    string( REGEX REPLACE "([^;]+)" "be_rfmultipole/\\1" LOCAL_CXX_HEADERS
            "${SIXTRACKLIB_COMMON_BE_RF_MULTIPOLE_CXX_HEADERS}" )

    set(  SIXTRACKLIB_COMMON_CXX_HEADERS
        ${SIXTRACKLIB_COMMON_CXX_HEADERS}
        ${LOCAL_CXX_HEADERS} PARENT_SCOPE )
endif()

# ----------------------------------------------------------------------------
# install :

if( SIXTRACKLIB_COMMON_BE_RF_MULTIPOLE_C99_HEADERS )

    set( SIXTRACKLIB_COMMON_BE_RF_MULTIPOLE_C99_INSTALL_PATH
         include/sixtracklib/common/be_rfmultipole )

    install( FILES ${SIXTRACKLIB_COMMON_BE_RF_MULTIPOLE_C99_HEADERS}
             DESTINATION ${SIXTRACKLIB_COMMON_BE_RF_MULTIPOLE_C99_INSTALL_PATH} )
endif()


if( SIXTRACKLIB_COMMON_BE_RF_MULTIPOLE_CXX_HEADERS )

    set( SIXTRACKLIB_COMMON_BE_RF_MULTIPOLE_CXX_INSTALL_PATH
         include/sixtracklib/common/be_rfmultipole )

    install( FILES ${SIXTRACKLIB_COMMON_BE_RF_MULTIPOLE_CXX_HEADERS}
             DESTINATION ${SIXTRACKLIB_COMMON_BE_RF_MULTIPOLE_CXX_INSTALL_PATH} )
endif()

#end: sixtracklib/common/be_rfmultipole/CMakeLists.txt

Add template for RF multipole beam element
sixtracklib/common: Add template for RF multipole beam element
