coriolis/hurricane/src/isobar/CMakeLists.txt

112 lines
5.7 KiB
CMake
Raw Normal View History

2008-03-06 10:46:43 -06:00
include_directories ( ${PYTHON_INCLUDE_PATH}
${HURRICANE_SOURCE_DIR}/src/hurricane
${HURRICANE_SOURCE_DIR}/src/isobar
)
set ( sources ProxyProperty.cpp
PyBox.cpp
PyCell.cpp
2008-10-19 17:07:32 -05:00
PyCellCollection.cpp
PyComponent.cpp
2008-10-19 17:07:32 -05:00
PyComponentCollection.cpp
PyContact.cpp
PyDataBase.cpp
PyEntity.cpp
PyHorizontal.cpp
PyHurricane.cpp
PyHyperNet.cpp
PyInstance.cpp
2008-10-19 17:07:32 -05:00
PyInstanceCollection.cpp
PyLayer.cpp
PyLibrary.cpp
PyNet.cpp
2008-10-14 05:48:53 -05:00
PyNetCollection.cpp
PyOccurrence.cpp
2008-10-19 17:07:32 -05:00
PyOccurrenceCollection.cpp
2008-11-20 04:56:11 -06:00
PyPad.cpp
PyPath.cpp
PyPin.cpp
2008-10-19 17:07:32 -05:00
PyPinCollection.cpp
PyPlug.cpp
2008-10-19 17:07:32 -05:00
PyPlugCollection.cpp
PyPoint.cpp
PyReference.cpp
2008-10-19 17:07:32 -05:00
PyReferenceCollection.cpp
PySegment.cpp
2008-10-19 17:07:32 -05:00
PySegmentCollection.cpp
PyTechnology.cpp
PyTransformation.cpp
PyDbU.cpp
PyUpdateSession.cpp
PyVertical.cpp
)
set ( includes hurricane/isobar/ProxyProperty.h
hurricane/isobar/PyBox.h
hurricane/isobar/PyCell.h
2008-10-17 12:27:20 -05:00
hurricane/isobar/PyCellCollection.h
hurricane/isobar/PyComponent.h
2008-10-17 12:27:20 -05:00
hurricane/isobar/PyComponentCollection.h
hurricane/isobar/PyContact.h
hurricane/isobar/PyDataBase.h
hurricane/isobar/PyEntity.h
hurricane/isobar/PyHorizontal.h
hurricane/isobar/PyHurricane.h
hurricane/isobar/PyHyperNet.h
hurricane/isobar/PyInstance.h
2008-10-17 12:27:20 -05:00
hurricane/isobar/PyInstanceCollection.h
hurricane/isobar/PyLayer.h
hurricane/isobar/PyLibrary.h
hurricane/isobar/PyNet.h
2008-10-17 12:27:20 -05:00
hurricane/isobar/PyNetCollection.h
hurricane/isobar/PyOccurrence.h
2008-10-17 12:27:20 -05:00
hurricane/isobar/PyOccurrenceCollection.h
2008-11-20 04:56:11 -06:00
hurricane/isobar/PyPad.h
hurricane/isobar/PyPath.h
hurricane/isobar/PyPin.h
2008-10-17 12:27:20 -05:00
hurricane/isobar/PyPinCollection.h
hurricane/isobar/PyPlug.h
2008-10-17 12:27:20 -05:00
hurricane/isobar/PyPlugCollection.h
hurricane/isobar/PyPoint.h
hurricane/isobar/PyReference.h
2008-10-17 12:27:20 -05:00
hurricane/isobar/PyReferenceCollection.h
hurricane/isobar/PySegment.h
2008-10-17 12:27:20 -05:00
hurricane/isobar/PySegmentCollection.h
hurricane/isobar/PyTechnology.h
hurricane/isobar/PyTransformation.h
hurricane/isobar/PyDbU.h
hurricane/isobar/PyUpdateSession.h
hurricane/isobar/PyVertical.h
)
2008-03-06 10:46:43 -06:00
install ( FILES ${includes} DESTINATION /include/hurricane/isobar )
if ( BUILD_STATIC )
add_library ( isobar-static STATIC ${sources} )
target_link_libraries ( isobar-static hurricane-static ${PYTHON_LIBRARIES} )
add_library ( Hurricane-static MODULE ${sources} )
set_target_properties ( Hurricane-static PROPERTIES
COMPILE_FLAGS "${COMPILE_FLAGS} -D__PYTHON_MODULE__=1"
PREFIX ""
)
target_link_libraries ( Hurricane-static isobar-static hurricane-static ${PYTHON_LIBRARIES} )
install ( TARGETS isobar-static DESTINATION /lib )
install ( TARGETS Hurricane-static DESTINATION /lib/python )
else ( BUILD_STATIC )
add_library ( isobar SHARED ${sources} )
target_link_libraries ( isobar hurricane ${PYTHON_LIBRARIES} )
2008-03-06 10:46:43 -06:00
add_library ( Hurricane MODULE ${sources} )
set_target_properties ( Hurricane PROPERTIES
COMPILE_FLAGS "${COMPILE_FLAGS} -D__PYTHON_MODULE__=1"
PREFIX ""
)
target_link_libraries ( Hurricane isobar hurricane ${PYTHON_LIBRARIES} )
2008-03-06 10:46:43 -06:00
install ( TARGETS isobar DESTINATION /lib )
install ( TARGETS Hurricane DESTINATION /lib/python )
endif ( BUILD_STATIC )