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
|
|
|
|
anabatic/GraphicAnabaticEngine.h
|
2016-05-30 04:30:29 -05:00
|
|
|
anabatic/Dijkstra.h
|
2016-05-23 09:15:25 -05:00
|
|
|
)
|
|
|
|
set( mocIncludes anabatic/GraphicAnabaticEngine.h )
|
|
|
|
set( pyIncludes anabatic/PyAnabaticEngine.h
|
|
|
|
anabatic/PyGraphicAnabaticEngine.h
|
|
|
|
)
|
|
|
|
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
|
|
|
|
AnabaticEngine.cpp
|
|
|
|
GraphicAnabaticEngine.cpp
|
2016-05-30 04:30:29 -05:00
|
|
|
Dijkstra.cpp
|
2016-05-23 09:15:25 -05:00
|
|
|
)
|
|
|
|
set( pyCpps PyAnabaticEngine.cpp
|
|
|
|
PyGraphicAnabaticEngine.cpp
|
|
|
|
PyAnabatic.cpp
|
|
|
|
)
|
|
|
|
qtX_wrap_cpp( mocCpps ${mocIncludes} )
|
|
|
|
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library( anabatic ${cpps} ${mocCpps} )
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
install( TARGETS anabatic DESTINATION lib${LIB_SUFFIX} )
|
|
|
|
install( FILES ${includes}
|
|
|
|
${mocIncludes} DESTINATION include/coriolis2/anabatic )
|
|
|
|
|