2010-06-08 07:09:50 -05:00
|
|
|
|
|
|
|
include ( ${QT_USE_FILE} )
|
|
|
|
|
|
|
|
include_directories ( ${MAUKA_SOURCE_DIR}/src
|
|
|
|
${CORIOLIS_INCLUDE_DIR}
|
2010-06-18 09:14:54 -05:00
|
|
|
${HURRICANE_INCLUDE_DIR}
|
|
|
|
${CONFIGURATION_INCLUDE_DIR}
|
2010-07-12 10:19:31 -05:00
|
|
|
${PYTHON_INCLUDE_PATH}
|
2010-06-08 07:09:50 -05:00
|
|
|
)
|
|
|
|
set ( includes mauka/Configuration.h
|
2010-06-25 03:50:50 -05:00
|
|
|
mauka/FeedCells.h
|
2010-06-08 07:09:50 -05:00
|
|
|
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
|
|
|
|
)
|
2010-06-18 09:14:54 -05:00
|
|
|
set ( mocIncludes mauka/GraphicMaukaEngine.h )
|
2010-07-12 10:19:31 -05:00
|
|
|
set ( pyIncludes mauka/PyMaukaEngine.h )
|
2010-06-08 07:09:50 -05:00
|
|
|
set ( cpps Configuration.cpp
|
|
|
|
BBPlacer.cpp
|
2010-06-25 03:50:50 -05:00
|
|
|
FeedCells.cpp
|
2010-06-08 07:09:50 -05:00
|
|
|
Bin.cpp
|
|
|
|
Container.cpp
|
|
|
|
MaukaBox.cpp
|
|
|
|
Move.cpp
|
|
|
|
Row.cpp
|
|
|
|
SimAnnealingPlacer.cpp
|
|
|
|
SubRow.cpp
|
|
|
|
Surface.cpp
|
2010-07-12 10:19:31 -05:00
|
|
|
InsertFeeds.cpp
|
2010-06-08 07:09:50 -05:00
|
|
|
MaukaEngine.cpp
|
|
|
|
GraphicMaukaEngine.cpp
|
|
|
|
)
|
2010-07-12 10:19:31 -05:00
|
|
|
set ( pyCpps PyMauka.cpp
|
|
|
|
PyMaukaEngine.cpp
|
|
|
|
)
|
2010-06-08 07:09:50 -05:00
|
|
|
qt4_wrap_cpp ( mocCpps ${mocIncludes} )
|
|
|
|
|
|
|
|
|
2010-07-12 10:19:31 -05:00
|
|
|
add_library ( mauka ${cpps} ${mocCpps} ${pyCpps} )
|
|
|
|
target_link_libraries ( mauka ${METIS_LIBRARIES}
|
|
|
|
${NIMBUS_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 ( Mauka MODULE ${pyCpps} )
|
|
|
|
set_target_properties ( Mauka PROPERTIES COMPILE_FLAGS "${COMPILE_FLAGS} -D__PYTHON_MODULE__=1"
|
|
|
|
PREFIX ""
|
|
|
|
)
|
|
|
|
|
|
|
|
install ( TARGETS mauka DESTINATION lib${LIB_SUFFIX} )
|
|
|
|
install ( TARGETS Mauka DESTINATION ${PYTHON_SITE_PACKAGES} )
|
|
|
|
install ( FILES ${includes}
|
|
|
|
${mocIncludes}
|
|
|
|
${pyIncludes} DESTINATION include/coriolis2/mauka )
|