Source

fcfs-rwlock / pthreads / man / CMakeLists.txt

CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

SET(CMAKE_VERBOSE_MAKEFILE ON)

SET (PTHREAD_RWLOCK_FCFS_MAN_PAGE_DESTS )
RUN_POD2MAN(
    PTHREAD_RWLOCK_FCFS_MAN_PAGE_DESTS
    "pthread_rwlock_fcfs.pod"
    "pthread_rwlock_fcfs.3thr"
    "3thr"
    "FCFS RWLock"
    "FCFS RWLock"
)

INSTALL_MAN ( "${CMAKE_CURRENT_BINARY_DIR}/freecell-solver-range-parallel-solve.6" 3)

SET (SRC "${CMAKE_CURRENT_SOURCE_DIR}/pthread_rwlock_fcfs.pod")
SET (DEST "pthread_rwlock_fcfs.html")

ADD_CUSTOM_COMMAND(
    OUTPUT ${DEST}
    COMMAND pod2xhtml
    ARGS "--noindex" "--infile" ${SRC} "--outfile" ${DEST}
    MAIN_DEPENDENCY ${SRC}
    VERBATIM
)

ADD_CUSTOM_TARGET(
    HTML_${DEST} ALL
    DEPENDS ${DEST}
)

SET (man_links "alloc" "timed_gain_read" "timed_gain_write"
    "try_gain_read" "try_gain_write"
    "gain_read" "gain_write"
    "release"
    "destroy")

SET (prefix "pthread_rwlock_fcfs")
FOREACH(link ${man_links})
    SET (full_link "${prefix}_${link}")
    SET (DEST "${full_link}.3thr")
    ADD_CUSTOM_COMMAND(
        OUTPUT ${DEST}
        COMMAND echo
        ARGS ".so man3/${prefix}.3thr" > ${DEST}
        VERBATIM
    )

    ADD_CUSTOM_TARGET(
        MAN_${DEST} ALL
        DEPENDS ${DEST} ${PTHREAD_RWLOCK_FCFS_MAN_PAGE_DESTS}
    )
ENDFOREACH(link)
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.