| 59 | set(TARGET_LIST) |
| 60 | list(APPEND TARGET_LIST qhullcmd) |
| 61 | list(APPEND TARGET_LIST rbox) |
| 62 | list(APPEND TARGET_LIST qconvex) |
| 63 | list(APPEND TARGET_LIST qdelaunay) |
| 64 | list(APPEND TARGET_LIST qvoronoi) |
| 65 | list(APPEND TARGET_LIST qhalf) |
| 66 | |
| 67 | foreach(TARGET ${TARGET_LIST}) |
| 68 | add_executable(${TARGET} ${${TARGET}_SOURCES}) |
| 69 | target_link_libraries(${TARGET} qhull) |
| 70 | if(USE_RPATH) |
| 71 | set_target_properties( |
| 72 | ${TARGET} |
| 73 | PROPERTIES |
| 74 | INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib |
| 75 | INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/bin |
| 76 | ) |
| 77 | else(USE_RPATH) |
| 78 | set_target_properties( |
| 79 | ${TARGET} |
| 80 | PROPERTIES |
| 81 | INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/bin |
| 82 | ) |
| 83 | endif(USE_RPATH) |
| 84 | install(TARGETS ${TARGET} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) |
| 85 | endforeach(TARGET ${TARGET_LIST}) |
37 | | add_executable(qhullcmd ${qhullcmd_SOURCES}) |
38 | | target_link_libraries(qhullcmd qhull) |
39 | | |
40 | | add_executable(rbox ${rbox_SOURCES}) |
41 | | target_link_libraries(rbox qhull) |
42 | | |
43 | | add_executable(qconvex ${qconvex_SOURCES}) |
44 | | target_link_libraries(qconvex qhull) |
45 | | |
46 | | add_executable(qdelaunay ${qdelaunay_SOURCES}) |
47 | | target_link_libraries(qdelaunay qhull) |
48 | | |
49 | | add_executable(qvoronoi ${qvoronoi_SOURCES}) |
50 | | target_link_libraries(qvoronoi qhull) |
51 | | |
52 | | add_executable(qhalf ${qhalf_SOURCES}) |
53 | | target_link_libraries(qhalf qhull) |
54 | | |
| 87 | set_target_properties(qhullcmd PROPERTIES OUTPUT_NAME qhull) |