Source

Website Meta Language / src / wml_backend / p9_slice / CMakeLists.txt

SET(BASENAME "slice")
SET(src "${CMAKE_CURRENT_SOURCE_DIR}/${BASENAME}_main.pl")
SET(intermediatebase "${BASENAME}.pre.pl")
SET(intermediate "${CMAKE_CURRENT_BINARY_DIR}/${intermediatebase}")
SET(destbase "${BASENAME}.pl")
SET(dest "${CMAKE_CURRENT_BINARY_DIR}/${destbase}")

ADD_CUSTOM_COMMAND(
    OUTPUT "${intermediate}"
    COMMAND "${PERL_EXECUTABLE}"
    ARGS "${CMAKE_CURRENT_SOURCE_DIR}/etc/expand.pl"
         "${src}"
         "${intermediate}"
    WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
    DEPENDS "${src}"
)

ADD_CUSTOM_TARGET(
    "${BASENAME}_preproc_2" ALL
    DEPENDS "${intermediate}"
)

PREPROCESS_PATH_PERL_WITH_FULL_NAMES(
    "${BASENAME}_preproc" "${intermediate}" "${dest}"
)

SET(INST_BASE "wml_p9_${BASENAME}")

SET (POD2MAN_SOURCE_IS_IN_BINARY 1)
SET (POD2MAN_TARGET_IS_A_LIST 1)
SET (pod_dests )
INST_RENAME_POD2MAN(
    "pod_dests" "${destbase}" "${BASENAME}" "1" "${INST_BASE}"
)
SET (POD2MAN_TARGET_IS_A_LIST )

ADD_CUSTOM_TARGET(
    "${BASENAME}_pod" ALL
    DEPENDS ${pod_dests}
)

INSTALL(
    PROGRAMS "${dest}"
    DESTINATION "${WML_LIBEXE_DIR}"
    RENAME "${INST_BASE}"
)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.