# - installation of manpage
function(tool_defaults name)
if(NOT HAVE_GETOPT_H)
- target_link_libraries(${name} getopt)
+ target_link_libraries(${name} ${Getopt_LINK_LIBRARIES})
endif(NOT HAVE_GETOPT_H)
install(
${GRAPHVIZ_LIB_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
- ${TOP_SOURCE_DIR}/windows/getopt
${GRAPHVIZ_LIB_DIR}/cdt
${GRAPHVIZ_LIB_DIR}/cgraph
${GRAPHVIZ_LIB_DIR}/common
${GRAPHVIZ_LIB_DIR}/pack
${GRAPHVIZ_LIB_DIR}/pathplan
${EXPAT_INCLUDE_DIRS}
+ ${Getopt_INCLUDE_DIRS}
)
target_link_libraries(${name}
${GRAPHVIZ_LIB_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
- ${TOP_SOURCE_DIR}/windows/getopt
${GRAPHVIZ_LIB_DIR}/cdt
${GRAPHVIZ_LIB_DIR}/cgraph
${GRAPHVIZ_LIB_DIR}/common
${GRAPHVIZ_LIB_DIR}/pack
${GRAPHVIZ_LIB_DIR}/pathplan
${EXPAT_INCLUDE_DIRS}
+ ${Getopt_INCLUDE_DIRS}
)
target_link_libraries(dijkstra
${GRAPHVIZ_LIB_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
- ${TOP_SOURCE_DIR}/windows/getopt
${GRAPHVIZ_LIB_DIR}/cdt
${GRAPHVIZ_LIB_DIR}/cgraph
${GRAPHVIZ_LIB_DIR}/common
${GRAPHVIZ_LIB_DIR}/pack
${GRAPHVIZ_LIB_DIR}/pathplan
${EXPAT_INCLUDE_DIRS}
+ ${Getopt_INCLUDE_DIRS}
)
target_link_libraries(gml2gv
${GRAPHVIZ_LIB_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
- ${TOP_SOURCE_DIR}/windows/getopt
${GRAPHVIZ_LIB_DIR}/cdt
${GRAPHVIZ_LIB_DIR}/cgraph
${GRAPHVIZ_LIB_DIR}/common
${GRAPHVIZ_LIB_DIR}/pack
${GRAPHVIZ_LIB_DIR}/pathplan
${EXPAT_INCLUDE_DIRS}
+ ${Getopt_INCLUDE_DIRS}
)
target_link_libraries(graphml2gv
${GRAPHVIZ_LIB_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
- ${TOP_SOURCE_DIR}/windows/getopt
${GRAPHVIZ_LIB_DIR}/cdt
${GRAPHVIZ_LIB_DIR}/cgraph
${GRAPHVIZ_LIB_DIR}/common
${GRAPHVIZ_LIB_DIR}/pack
${GRAPHVIZ_LIB_DIR}/pathplan
${EXPAT_INCLUDE_DIRS}
+ ${Getopt_INCLUDE_DIRS}
)
target_link_libraries(gvcolor
${GRAPHVIZ_LIB_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
- ${TOP_SOURCE_DIR}/windows/getopt
${GRAPHVIZ_LIB_DIR}/cdt
${GRAPHVIZ_LIB_DIR}/cgraph
${GRAPHVIZ_LIB_DIR}/common
${GRAPHVIZ_LIB_DIR}/pack
${GRAPHVIZ_LIB_DIR}/pathplan
${EXPAT_INCLUDE_DIRS}
+ ${Getopt_INCLUDE_DIRS}
)
target_link_libraries(gvgen cgraph)
${GRAPHVIZ_LIB_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
- ${TOP_SOURCE_DIR}/windows/getopt
${GRAPHVIZ_LIB_DIR}/cdt
${GRAPHVIZ_LIB_DIR}/cgraph
${GRAPHVIZ_LIB_DIR}/common
${GRAPHVIZ_LIB_DIR}/pack
${GRAPHVIZ_LIB_DIR}/pathplan
${EXPAT_INCLUDE_DIRS}
+ ${Getopt_INCLUDE_DIRS}
)
target_link_libraries(gvpack
${GRAPHVIZ_LIB_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
- ${TOP_SOURCE_DIR}/windows/getopt
${GRAPHVIZ_LIB_DIR}/cdt
${GRAPHVIZ_LIB_DIR}/cgraph
${GRAPHVIZ_LIB_DIR}/common
${GRAPHVIZ_LIB_DIR}/pack
${GRAPHVIZ_LIB_DIR}/pathplan
${EXPAT_INCLUDE_DIRS}
+ ${Getopt_INCLUDE_DIRS}
)
target_link_libraries(gxl2gv
${GRAPHVIZ_LIB_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
- ${TOP_SOURCE_DIR}/windows/getopt
${GRAPHVIZ_LIB_DIR}/cdt
${GRAPHVIZ_LIB_DIR}/cgraph
${GRAPHVIZ_LIB_DIR}/common
${GRAPHVIZ_LIB_DIR}/pack
${GRAPHVIZ_LIB_DIR}/pathplan
${EXPAT_INCLUDE_DIRS}
+ ${Getopt_INCLUDE_DIRS}
)
target_link_libraries(mm2gv
${GRAPHVIZ_LIB_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
- ${TOP_SOURCE_DIR}/windows/getopt
${GRAPHVIZ_LIB_DIR}/cdt
${GRAPHVIZ_LIB_DIR}/cgraph
${GRAPHVIZ_LIB_DIR}/common
${GRAPHVIZ_LIB_DIR}/pack
${GRAPHVIZ_LIB_DIR}/pathplan
${EXPAT_INCLUDE_DIRS}
+ ${Getopt_INCLUDE_DIRS}
)
target_link_libraries(sccmap
DESTINATION ${BINARY_INSTALL_DIR}
)
endif(WIN32 AND EXPAT_FOUND)
+
+if (WIN32)
+ install(
+ FILES ${Getopt_RUNTIME_LIBRARIES}
+ DESTINATION ${BINARY_INSTALL_DIR}
+ )
+endif()