2016-05-23 09:15:25 -05:00
|
|
|
# -*- explicit-buffer-name: "CMakeLists.txt<anabatic/src>" -*-
|
|
|
|
|
|
|
|
if ( CHECK_DETERMINISM )
|
|
|
|
add_definitions ( -DCHECK_DETERMINISM )
|
|
|
|
endif ( CHECK_DETERMINISM )
|
|
|
|
|
|
|
|
include_directories( ${ANABATIC_SOURCE_DIR}/src
|
|
|
|
${CORIOLIS_INCLUDE_DIR}
|
|
|
|
${HURRICANE_INCLUDE_DIR}
|
|
|
|
${CONFIGURATION_INCLUDE_DIR}
|
|
|
|
${Boost_INCLUDE_DIRS}
|
|
|
|
${QtX_INCLUDE_DIR}
|
|
|
|
${PYTHON_INCLUDE_PATH}
|
|
|
|
)
|
|
|
|
set( includes anabatic/Constants.h
|
|
|
|
anabatic/Configuration.h
|
|
|
|
anabatic/Matrix.h
|
2016-05-30 04:30:29 -05:00
|
|
|
anabatic/Edge.h anabatic/Edges.h
|
2016-05-23 09:15:25 -05:00
|
|
|
anabatic/GCell.h #anabatic/GCells.h
|
|
|
|
anabatic/AnabaticEngine.h
|
2016-05-30 04:30:29 -05:00
|
|
|
anabatic/Dijkstra.h
|
2016-07-18 07:48:37 -05:00
|
|
|
|
|
|
|
anabatic/AutoContact.h
|
|
|
|
anabatic/AutoContactTerminal.h
|
|
|
|
anabatic/AutoContactTurn.h
|
|
|
|
anabatic/AutoContactHTee.h
|
|
|
|
anabatic/AutoContactVTee.h
|
|
|
|
anabatic/AutoSegment.h anabatic/AutoSegments.h
|
|
|
|
anabatic/AutoHorizontal.h
|
|
|
|
anabatic/AutoVertical.h
|
|
|
|
anabatic/Session.h
|
2017-12-16 17:13:19 -06:00
|
|
|
anabatic/NetBuilder.h
|
2017-12-18 11:15:14 -06:00
|
|
|
anabatic/NetBuilderM2.h
|
2017-12-16 17:13:19 -06:00
|
|
|
anabatic/NetBuilderHV.h
|
2016-07-21 17:14:17 -05:00
|
|
|
anabatic/ChipTools.h
|
2016-05-23 09:15:25 -05:00
|
|
|
)
|
2016-09-07 04:21:36 -05:00
|
|
|
set( pyIncludes )
|
2016-05-23 09:15:25 -05:00
|
|
|
set( cpps Constants.cpp
|
|
|
|
Configuration.cpp
|
|
|
|
Matrix.cpp
|
|
|
|
Edge.cpp
|
2016-05-30 04:30:29 -05:00
|
|
|
Edges.cpp
|
2016-05-23 09:15:25 -05:00
|
|
|
GCell.cpp
|
2016-05-30 04:30:29 -05:00
|
|
|
Dijkstra.cpp
|
2016-07-18 07:48:37 -05:00
|
|
|
AutoContact.cpp
|
|
|
|
AutoContactTerminal.cpp
|
|
|
|
AutoContactTurn.cpp
|
|
|
|
AutoContactHTee.cpp
|
|
|
|
AutoContactVTee.cpp
|
|
|
|
AutoSegment.cpp AutoSegments.cpp
|
|
|
|
AutoHorizontal.cpp
|
|
|
|
AutoVertical.cpp
|
|
|
|
Session.cpp
|
|
|
|
NetConstraints.cpp
|
|
|
|
NetOptimals.cpp
|
2017-12-16 17:13:19 -06:00
|
|
|
NetBuilder.cpp
|
2017-12-18 11:15:14 -06:00
|
|
|
NetBuilderM2.cpp
|
2017-12-16 17:13:19 -06:00
|
|
|
NetBuilderHV.cpp
|
2016-07-21 17:14:17 -05:00
|
|
|
ChipTools.cpp
|
|
|
|
LayerAssign.cpp
|
|
|
|
PreRouteds.cpp
|
2017-12-16 17:13:19 -06:00
|
|
|
AnabaticEngine.cpp
|
2016-05-23 09:15:25 -05:00
|
|
|
)
|
2016-09-07 04:21:36 -05:00
|
|
|
set( pyCpps PyAnabatic.cpp
|
2016-05-23 09:15:25 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
set( depLibs ${CORIOLIS_PYTHON_LIBRARIES}
|
|
|
|
${CORIOLIS_LIBRARIES}
|
|
|
|
${HURRICANE_PYTHON_LIBRARIES}
|
|
|
|
${HURRICANE_GRAPHICAL_LIBRARIES}
|
|
|
|
${HURRICANE_LIBRARIES}
|
|
|
|
${CONFIGURATION_LIBRARY}
|
|
|
|
${CIF_LIBRARY}
|
|
|
|
${AGDS_LIBRARY}
|
|
|
|
${LEFDEF_LIBRARIES}
|
|
|
|
${OA_LIBRARIES}
|
|
|
|
${QtX_LIBRARIES}
|
|
|
|
${Boost_LIBRARIES}
|
|
|
|
${LIBXML2_LIBRARIES}
|
|
|
|
${PYTHON_LIBRARIES} -lutil
|
|
|
|
)
|
|
|
|
|
2016-09-07 04:21:36 -05:00
|
|
|
add_library( anabatic ${cpps} )
|
2016-05-23 09:15:25 -05:00
|
|
|
set_target_properties( anabatic PROPERTIES VERSION 1.0 SOVERSION 1 )
|
|
|
|
target_link_libraries( anabatic ${depLibs} )
|
|
|
|
|
|
|
|
add_python_module( "${pyCpps}"
|
|
|
|
"${pyIncludes}"
|
|
|
|
"pyanabatic;1.0;1"
|
|
|
|
Anabatic
|
|
|
|
"anabatic;${depLibs}"
|
|
|
|
include/coriolis2/anabatic
|
|
|
|
)
|
|
|
|
|
2016-09-07 04:21:36 -05:00
|
|
|
install( TARGETS anabatic DESTINATION lib${LIB_SUFFIX} )
|
|
|
|
install( FILES ${includes} DESTINATION include/coriolis2/anabatic )
|
2016-05-23 09:15:25 -05:00
|
|
|
|