92 lines
4.9 KiB
CMake
92 lines
4.9 KiB
CMake
# -*- explicit-buffer-name: "CMakeLists.txt<knik/src>" -*-
|
|
|
|
# include ( ${QT_USE_FILE} )
|
|
include_directories ( ${KNIK_SOURCE_DIR}/src
|
|
${KNIK_SOURCE_DIR}/src/flute-3.1/src
|
|
${HURRICANE_INCLUDE_DIR}
|
|
${CORIOLIS_INCLUDE_DIR}
|
|
${UTILITIES_INCLUDE_DIR}
|
|
${QtX_INCLUDE_DIRS}
|
|
${Boost_INCLUDE_DIRS}
|
|
)
|
|
set ( includes knik/Configuration.h
|
|
knik/Vertex.h knik/Vertexes.h
|
|
knik/Tuple.h
|
|
knik/STuple.h
|
|
knik/VTuple.h
|
|
knik/Edge.h knik/Edges.h
|
|
knik/HEdge.h
|
|
knik/VEdge.h
|
|
knik/MatrixVertex.h
|
|
knik/RoutingGrid.h
|
|
knik/SlicingTree.h
|
|
knik/SlicingTreeNode.h
|
|
knik/Graph.h
|
|
knik/NetExtension.h
|
|
knik/KnikEngine.h
|
|
)
|
|
set ( mocIncludes knik/GraphicKnikEngine.h )
|
|
set ( cpps Configuration.cpp
|
|
Vertex.cpp
|
|
Edge.cpp
|
|
HEdge.cpp
|
|
VEdge.cpp
|
|
MatrixVertex.cpp
|
|
Graph.cpp
|
|
SlicingTree.cpp
|
|
NetExtension.cpp
|
|
LoadSolution.cpp
|
|
KnikEngine.cpp
|
|
GraphicKnikEngine.cpp
|
|
)
|
|
set ( fluteIncludes flute-3.1/src/knik/flute.h
|
|
flute-3.1/src/knik/dl.h
|
|
flute-3.1/src/knik/mst2.h
|
|
flute-3.1/src/knik/err.h
|
|
flute-3.1/src/knik/heap.h
|
|
flute-3.1/src/knik/dist.h
|
|
flute-3.1/src/knik/global.h
|
|
flute-3.1/src/knik/neighbors.h
|
|
)
|
|
set ( fluteCpps flute-3.1/src/flute.cpp
|
|
flute-3.1/src/flute_mst.cpp
|
|
flute-3.1/src/dist.cpp
|
|
flute-3.1/src/dl.cpp
|
|
flute-3.1/src/err.cpp
|
|
flute-3.1/src/mst2.cpp
|
|
flute-3.1/src/heap.cpp
|
|
flute-3.1/src/neighbors.cpp
|
|
)
|
|
qtX_wrap_cpp ( mocCpps ${mocIncludes} )
|
|
|
|
|
|
add_library ( flute ${fluteCpps} )
|
|
set_target_properties ( flute PROPERTIES VERSION 3.1 SOVERSION 3 )
|
|
target_link_libraries ( flute ${HURRICANE_LIBRARIES}
|
|
${CORIOLIS_LIBRARIES}
|
|
)
|
|
add_library ( knik ${cpps} ${mocCpps} )
|
|
set_target_properties ( knik PROPERTIES VERSION 1.0 SOVERSION 1 )
|
|
target_link_libraries ( knik flute
|
|
${HURRICANE_PYTHON_LIBRARIES}
|
|
${HURRICANE_GRAPHICAL_LIBRARIES}
|
|
${HURRICANE_LIBRARIES}
|
|
${CONFIGURATION_LIBRARY}
|
|
${CIF_LIBRARY}
|
|
${AGDS_LIBRARY}
|
|
${UTILITIES_LIBRARY}
|
|
${LEFDEF_LIBRARIES}
|
|
${OA_LIBRARIES}
|
|
${QtX_LIBRARIES}
|
|
${Boost_LIBRARIES}
|
|
${LIBXML2_LIBRARIES}
|
|
${PYTHON_LIBRARIES} -lutil
|
|
)
|
|
|
|
install ( TARGETS knik flute DESTINATION lib${LIB_SUFFIX} )
|
|
install ( FILES ${includes}
|
|
${mocIncludes}
|
|
${fluteIncludes} DESTINATION include/coriolis2/knik )
|
|
install ( FILES flute-3.1/etc/POST9.dat
|
|
flute-3.1/etc/POWV9.dat DESTINATION share/coriolis2/flute-3.1 )
|