include ( ${QT_USE_FILE} ) include_directories ( ${MAUKA_SOURCE_DIR}/src ${CORIOLIS_INCLUDE_DIR} ${HURRICANE_INCLUDE_DIR} ${CONFIGURATION_INCLUDE_DIR} ${PYTHON_INCLUDE_PATH} ) set ( includes mauka/Configuration.h mauka/FeedCells.h mauka/BBPlacer.h mauka/Bin.h mauka/Container.h mauka/MaukaBox.h mauka/Move.h mauka/Row.h mauka/SimAnnealingPlacer.h mauka/SubRow.h mauka/Surface.h mauka/MaukaEngine.h ) set ( mocIncludes mauka/GraphicMaukaEngine.h ) set ( pyIncludes mauka/PyMaukaEngine.h ) set ( cpps Configuration.cpp BBPlacer.cpp FeedCells.cpp Bin.cpp Container.cpp MaukaBox.cpp Move.cpp Row.cpp SimAnnealingPlacer.cpp SubRow.cpp Surface.cpp InsertFeeds.cpp MaukaEngine.cpp GraphicMaukaEngine.cpp ) set ( pyCpps PyMauka.cpp PyMaukaEngine.cpp ) qt4_wrap_cpp ( mocCpps ${mocIncludes} ) add_library ( mauka ${cpps} ${mocCpps} ${pyCpps} ) target_link_libraries ( mauka ${METIS_LIBRARIES} ${NIMBUS_LIBRARIES} ${CORIOLIS_LIBRARIES} ${HURRICANE_PYTHON_LIBRARIES} ${HURRICANE_GRAPHICAL_LIBRARIES} ${HURRICANE_LIBRARIES} ${CONFIGURATION_LIBRARY} ${CIF_LIBRARY} ${AGDS_LIBRARY} ${LEFDEF_LIBRARIES} ${OA_LIBRARIES} ${QT_LIBRARIES} ${Boost_LIBRARIES} ${LIBXML2_LIBRARIES} ${PYTHON_LIBRARIES} -lutil ) add_library ( pyMauka MODULE ${pyCpps} ) set_target_properties ( pyMauka PROPERTIES COMPILE_FLAGS "${COMPILE_FLAGS} -D__PYTHON_MODULE__=1" PREFIX "" OUTPUT_NAME "Mauka" ) target_link_libraries ( pyMauka mauka ) install ( TARGETS mauka DESTINATION lib${LIB_SUFFIX} ) install ( TARGETS pyMauka DESTINATION ${PYTHON_SITE_PACKAGES} ) install ( FILES ${includes} ${mocIncludes} ${pyIncludes} DESTINATION include/coriolis2/mauka )