coriolis/katabatic/src/CMakeLists.txt

61 lines
2.9 KiB
CMake
Raw Normal View History

if ( CHECK_DETERMINISM )
add_definitions ( -DCHECK_DETERMINISM )
endif ( CHECK_DETERMINISM )
include ( ${QT_USE_FILE} )
include_directories ( ${KATABATIC_SOURCE_DIR}/src
${HURRICANE_INCLUDE_DIR}
${CORIOLIS_INCLUDE_DIR}
)
set ( includes katabatic/Configuration.h
katabatic/AutoContact.h katabatic/AutoContacts.h
katabatic/AutoSegment.h katabatic/AutoSegments.h
katabatic/AutoHorizontal.h
katabatic/AutoVertical.h
katabatic/Grid.h katabatic/GridCollections.h
katabatic/GridBox.h
katabatic/GCell.h katabatic/GCells.h
katabatic/GCellGrid.h
katabatic/Session.h
katabatic/KatabaticEngine.h
katabatic/GraphicKatabaticEngine.h
)
set ( mocIncludes katabatic/GraphicKatabaticEngine.h )
set ( cpps Configuration.cpp
AutoContact.cpp
AutoContacts.cpp
AutoSegment.cpp
AutoSegments.cpp
AutoHorizontal.cpp
AutoVertical.cpp
Grid.cpp
GCell.cpp
GCellGrid.cpp
PowerRails.cpp
Session.cpp
LayerAssign.cpp
LoadGrByNet.cpp
NetConstraints.cpp
NetOptimals.cpp
KatabaticEngine.cpp
GraphicKatabaticEngine.cpp
)
qt4_wrap_cpp ( mocCpps ${mocIncludes} )
add_library ( katabatic ${cpps} ${mocCpps} )
target_link_libraries ( katabatic ${KNIK_LIBRARIES}
${CORIOLIS_LIBRARIES}
${HURRICANE_LIBRARIES}
${HURRICANE_GRAPHICAL_LIBRARIES}
${QT_LIBRARIES}
${LEFDEF_LIBRARIES}
${OA_LIBRARIES}
)
install ( TARGETS katabatic DESTINATION lib)
install ( FILES ${includes}
${mocIncludes} DESTINATION include/coriolis/katabatic )