| 1 |
add_definitions(-DEXPORT_GVPR) |
| 2 |
|
| 3 |
add_executable(gvpr-bin |
| 4 |
# Source files |
| 5 |
gvprmain.c |
| 6 |
) |
| 7 |
|
| 8 |
target_include_directories(gvpr-bin PRIVATE |
| 9 |
../../lib |
| 10 |
../../lib/cdt |
| 11 |
../../lib/cgraph |
| 12 |
../../lib/gvpr |
| 13 |
) |
| 14 |
|
| 15 |
target_link_libraries(gvpr-bin PRIVATE |
| 16 |
ast |
| 17 |
cgraph |
| 18 |
gvc |
| 19 |
gvpr |
| 20 |
expr |
| 21 |
sfio |
| 22 |
) |
| 23 |
|
| 24 |
set_target_properties(gvpr-bin |
| 25 |
PROPERTIES OUTPUT_NAME gvpr) |
| 26 |
|
| 27 |
# Installation location of executables |
| 28 |
install( |
| 29 |
TARGETS gvpr-bin |
| 30 |
RUNTIME DESTINATION ${BINARY_INSTALL_DIR} |
| 31 |
LIBRARY DESTINATION ${LIBRARY_INSTALL_DIR} |
| 32 |
ARCHIVE DESTINATION ${LIBRARY_INSTALL_DIR} |
| 33 |
) |
| 34 |
|
| 35 |
# Specify man pages to be installed |
| 36 |
if(GZIP) |
| 37 |
add_custom_target(man-gvpr ALL DEPENDS gvpr.1.gz |
| 38 |
COMMENT "gvpr man page") |
| 39 |
add_custom_command( |
| 40 |
OUTPUT gvpr.1.gz |
| 41 |
COMMAND ${GZIP} -9 --no-name --to-stdout gvpr.1 |
| 42 |
>"${CMAKE_CURRENT_BINARY_DIR}/gvpr.1.gz" |
| 43 |
MAIN_DEPENDENCY gvpr.1 |
| 44 |
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} |
| 45 |
COMMENT "compress gvpr man page") |
| 46 |
install( |
| 47 |
FILES ${CMAKE_CURRENT_BINARY_DIR}/gvpr.1.gz |
| 48 |
DESTINATION ${MAN_INSTALL_DIR}/man1) |
| 49 |
else() |
| 50 |
install( |
| 51 |
FILES gvpr.1 |
| 52 |
DESTINATION ${MAN_INSTALL_DIR}/man1 |
| 53 |
) |
| 54 |
endif() |
| 55 |
|
| 56 |
install( |
| 57 |
FILES |
| 58 |
lib/addedges |
| 59 |
lib/addranks |
| 60 |
lib/addrings |
| 61 |
lib/anon |
| 62 |
lib/attr |
| 63 |
lib/bb |
| 64 |
lib/bbox |
| 65 |
lib/bipart |
| 66 |
lib/binduce |
| 67 |
lib/chkclusters |
| 68 |
lib/chkedges |
| 69 |
lib/cliptree |
| 70 |
lib/col |
| 71 |
lib/collapse |
| 72 |
lib/color |
| 73 |
lib/cycle |
| 74 |
lib/dechain |
| 75 |
lib/deghist |
| 76 |
lib/deledges |
| 77 |
lib/delmulti |
| 78 |
lib/delnodes |
| 79 |
lib/depath |
| 80 |
lib/dijkstra |
| 81 |
lib/flatten |
| 82 |
lib/get-layers-list |
| 83 |
lib/histogram |
| 84 |
lib/group |
| 85 |
lib/indent |
| 86 |
lib/knbhd |
| 87 |
lib/maxdeg |
| 88 |
lib/path |
| 89 |
lib/rotate |
| 90 |
lib/scale |
| 91 |
lib/scalexy |
| 92 |
lib/span |
| 93 |
lib/topon |
| 94 |
lib/treetoclust |
| 95 |
DESTINATION ${DATA_INSTALL_DIR}/graphviz/gvpr) |