Source

Website Meta Language / src / wml_backend / p2_mp4h / doc / CMakeLists.txt

Shlomi Fish c866b34 


Shlomi Fish cfd4bfa 















Shlomi Fish 4887d68 
Shlomi Fish cfd4bfa 



Shlomi Fish c866b34 



Shlomi Fish cfd4bfa 

Shlomi Fish 72b2260 






# TODO :
# Add targets for the texi files.

SET (POD_PATH  "mp4h.pod")
SET (HTML_PATH  "mp4h.html")
SET (PROGDIR "${CMAKE_BINARY_DIR}/wml_backend/p2_mp4h/src")
SET (MYPROGRAM "${PROGDIR}/wml_p2_mp4h")
SET (MYFLAGS "-X 0 -I ${CMAKE_CURRENT_SOURCE_DIR} -D srcdir=${CMAKE_CURRENT_SOURCE_DIR}")

MACRO(PREPARE_MP4H_DOC TARGET FORMAT)
ADD_CUSTOM_COMMAND(
    OUTPUT "${TARGET}"
    COMMAND "${PERL_EXECUTABLE}"
    ARGS "${CMAKE_CURRENT_SOURCE_DIR}/myformat.pl"
        "${MYPROGRAM}"
        "${MYFLAGS}"
        "${FORMAT}"
        "${CMAKE_CURRENT_SOURCE_DIR}"
        "${TARGET}"
        DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/mp4h.mp4h" "${CMAKE_CURRENT_SOURCE_DIR}/${FORMAT}.out" "mp4h"
)
ENDMACRO(PREPARE_MP4H_DOC TARGET FORMAT)

PREPARE_MP4H_DOC ("${CMAKE_CURRENT_BINARY_DIR}/${POD_PATH}" "pod")
SET (HTML_TARGET "${CMAKE_CURRENT_BINARY_DIR}/${HTML_PATH}")
PREPARE_MP4H_DOC ("${HTML_TARGET}" "html")

ADD_CUSTOM_TARGET( "mp4h_doc_html" ALL DEPENDS "${HTML_TARGET}" )

SET (POD2MAN_SOURCE_IS_IN_BINARY 1)
SET (mp4h_pod_dests )
SET (POD2MAN_TARGET_IS_A_LIST 1)
INST_RENAME_POD2MAN( "mp4h_pod_dests" "mp4h.pod" "mp4h" "1" "mp4h")
SET (POD2MAN_TARGET_IS_A_LIST )
ADD_CUSTOM_TARGET(
    "mp4h_pod" ALL
    DEPENDS ${mp4h_pod_dests}
)