Add cmake scripts for autoRIFT
parent
48b6bfbccb
commit
b1c8a599ca
|
@ -18,6 +18,8 @@ find_package(Python 3.5 REQUIRED COMPONENTS Interpreter Development
|
|||
find_package(FFTW REQUIRED)
|
||||
find_package(Motif)
|
||||
find_package(OpenMP REQUIRED COMPONENTS C CXX Fortran)
|
||||
find_package(OpenCV COMPONENTS core highgui imgproc)
|
||||
|
||||
# Find these, and create IMPORTED INTERFACE libraries for them if they exist
|
||||
include(TargetGDAL)
|
||||
include(TargetMotif)
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
# Early exit if prereqs not found
|
||||
if(NOT TARGET Python::NumPy
|
||||
OR NOT TARGET GDAL::GDAL
|
||||
OR NOT OpenCV_FOUND
|
||||
)
|
||||
return()
|
||||
endif()
|
||||
|
||||
InstallSameDir(__init__.py)
|
||||
|
||||
add_subdirectory(autoRIFT)
|
||||
add_subdirectory(geogrid)
|
|
@ -0,0 +1,18 @@
|
|||
Python_add_library(autoriftcore MODULE
|
||||
bindings/autoriftcoremodule.cpp
|
||||
)
|
||||
target_include_directories(autoriftcore PRIVATE
|
||||
include
|
||||
${OpenCV_INCLUDE_DIRS}
|
||||
)
|
||||
target_link_libraries(autoriftcore PRIVATE
|
||||
Python::NumPy
|
||||
${OpenCV_LIBS}
|
||||
)
|
||||
|
||||
InstallSameDir(
|
||||
autoriftcore
|
||||
__init__.py
|
||||
autoRIFT_ISCE.py
|
||||
autoRIFT.py
|
||||
)
|
|
@ -0,0 +1,18 @@
|
|||
Python_add_library(geogrid MODULE
|
||||
bindings/geogridmodule.cpp
|
||||
src/geogrid.cpp
|
||||
)
|
||||
target_include_directories(geogrid PRIVATE
|
||||
include
|
||||
)
|
||||
target_link_libraries(geogrid PRIVATE
|
||||
GDAL::GDAL
|
||||
combinedLib
|
||||
)
|
||||
|
||||
InstallSameDir(
|
||||
geogrid
|
||||
__init__.py
|
||||
Geogrid.py
|
||||
GeogridOptical.py
|
||||
)
|
Loading…
Reference in New Issue