Add cmake scripts for autoRIFT

LT1AB
Ryan Burns 2020-07-21 18:04:16 -07:00
parent 48b6bfbccb
commit b1c8a599ca
4 changed files with 50 additions and 0 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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
)

View File

@ -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
)