2019-02-26 13:13:47 -06:00
|
|
|
# -*- mode: CMAKE explicit-buffer-name: "CMakeLists.txt<flute/src/3.1>" -*-
|
|
|
|
|
Added Python for FLUTE (for fast RSMT in HFNS).
* New: In flute, added a Python binding. Contains two methods: "readLUT()",
to load the POWV9.dat and POST9.dat and "flute()" to build a RSMT.
"flute()" takes a tuple of positions (themselves 2-uple) like:
( (x0,y0), (x1,y1,), ... (xN,yM) )
and returns a tuple of 3-uple of branches:
( (n0,x0,y0), (n1,x1,y1), ... )
In "flute.h", set the distance type (DTYPE) to int64_t to always
accomodate DbU::Unit.
As it now uses the Hurricane Python interface and the path utilities
from CRL Core, move it's compilation *after* them (see build.conf in
bootstrap).
2020-09-30 04:52:22 -05:00
|
|
|
include_directories( ${FLUTE_SOURCE_DIR}/src/3.1
|
2021-08-26 11:44:45 -05:00
|
|
|
${CRLCORE_INCLUDE_PATH}
|
Added Python for FLUTE (for fast RSMT in HFNS).
* New: In flute, added a Python binding. Contains two methods: "readLUT()",
to load the POWV9.dat and POST9.dat and "flute()" to build a RSMT.
"flute()" takes a tuple of positions (themselves 2-uple) like:
( (x0,y0), (x1,y1,), ... (xN,yM) )
and returns a tuple of 3-uple of branches:
( (n0,x0,y0), (n1,x1,y1), ... )
In "flute.h", set the distance type (DTYPE) to int64_t to always
accomodate DbU::Unit.
As it now uses the Hurricane Python interface and the path utilities
from CRL Core, move it's compilation *after* them (see build.conf in
bootstrap).
2020-09-30 04:52:22 -05:00
|
|
|
${HURRICANE_INCLUDE_DIR}
|
|
|
|
${CONFIGURATION_INCLUDE_DIR}
|
|
|
|
${PYTHON_INCLUDE_PATH}
|
|
|
|
)
|
2019-02-26 13:13:47 -06:00
|
|
|
|
Added Python for FLUTE (for fast RSMT in HFNS).
* New: In flute, added a Python binding. Contains two methods: "readLUT()",
to load the POWV9.dat and POST9.dat and "flute()" to build a RSMT.
"flute()" takes a tuple of positions (themselves 2-uple) like:
( (x0,y0), (x1,y1,), ... (xN,yM) )
and returns a tuple of 3-uple of branches:
( (n0,x0,y0), (n1,x1,y1), ... )
In "flute.h", set the distance type (DTYPE) to int64_t to always
accomodate DbU::Unit.
As it now uses the Hurricane Python interface and the path utilities
from CRL Core, move it's compilation *after* them (see build.conf in
bootstrap).
2020-09-30 04:52:22 -05:00
|
|
|
set( includes flute.h
|
|
|
|
dl.h
|
|
|
|
mst2.h
|
|
|
|
err.h
|
|
|
|
heap.h
|
|
|
|
dist.h
|
|
|
|
global.h
|
|
|
|
neighbors.h
|
|
|
|
)
|
|
|
|
set( cpps flute.cpp
|
|
|
|
flute_mst.cpp
|
|
|
|
dist.cpp
|
|
|
|
dl.cpp
|
|
|
|
err.cpp
|
|
|
|
mst2.cpp
|
|
|
|
heap.cpp
|
|
|
|
neighbors.cpp
|
|
|
|
)
|
|
|
|
add_library( flute ${cpps} )
|
|
|
|
set_target_properties( flute PROPERTIES VERSION 3.1 SOVERSION 3 )
|
|
|
|
set( pyCpps PyFlute.cpp )
|
|
|
|
set( depLibs flute
|
|
|
|
${CORIOLIS_LIBRARIES}
|
|
|
|
${HURRICANE_PYTHON_LIBRARIES}
|
|
|
|
${UTILITIES_LIBRARY}
|
|
|
|
${PYTHON_LIBRARIES}
|
|
|
|
-lutil
|
|
|
|
)
|
2019-02-26 13:13:47 -06:00
|
|
|
|
Added Python for FLUTE (for fast RSMT in HFNS).
* New: In flute, added a Python binding. Contains two methods: "readLUT()",
to load the POWV9.dat and POST9.dat and "flute()" to build a RSMT.
"flute()" takes a tuple of positions (themselves 2-uple) like:
( (x0,y0), (x1,y1,), ... (xN,yM) )
and returns a tuple of 3-uple of branches:
( (n0,x0,y0), (n1,x1,y1), ... )
In "flute.h", set the distance type (DTYPE) to int64_t to always
accomodate DbU::Unit.
As it now uses the Hurricane Python interface and the path utilities
from CRL Core, move it's compilation *after* them (see build.conf in
bootstrap).
2020-09-30 04:52:22 -05:00
|
|
|
add_python_module( "${pyCpps}"
|
|
|
|
None
|
|
|
|
"pyflute;1.0;1"
|
|
|
|
Flute
|
|
|
|
"${depLibs}"
|
|
|
|
include/coriolis2/flute
|
|
|
|
)
|
2019-02-26 13:13:47 -06:00
|
|
|
|
Added Python for FLUTE (for fast RSMT in HFNS).
* New: In flute, added a Python binding. Contains two methods: "readLUT()",
to load the POWV9.dat and POST9.dat and "flute()" to build a RSMT.
"flute()" takes a tuple of positions (themselves 2-uple) like:
( (x0,y0), (x1,y1,), ... (xN,yM) )
and returns a tuple of 3-uple of branches:
( (n0,x0,y0), (n1,x1,y1), ... )
In "flute.h", set the distance type (DTYPE) to int64_t to always
accomodate DbU::Unit.
As it now uses the Hurricane Python interface and the path utilities
from CRL Core, move it's compilation *after* them (see build.conf in
bootstrap).
2020-09-30 04:52:22 -05:00
|
|
|
install( TARGETS flute DESTINATION lib${LIB_SUFFIX} )
|
|
|
|
install( FILES ${includes} DESTINATION include/flute/3.1 )
|
|
|
|
install( FILES POST9.dat
|
|
|
|
POWV9.dat DESTINATION share/flute/3.1 )
|