Use option to let user choose to use system's KLT

This commit is contained in:
Mattia Verga
2017-06-05 17:59:36 +02:00
parent 094678885c
commit 6b81411561
2 changed files with 5 additions and 2 deletions

View File

@@ -256,7 +256,10 @@ find_package (JPEG REQUIRED)
find_package (PNG REQUIRED)
find_package (TIFF REQUIRED)
find_package (ZLIB REQUIRED)
find_package (KLT)
option(USE_SYSTEM_KLT "Enable this option here or in cmake call if you want to use system's KLT libraries." OFF)
if (USE_SYSTEM_KLT)
find_package (KLT REQUIRED)
endif(USE_SYSTEM_KLT)
# link witz bzip
if (WITH_BZIP)

View File

@@ -24,7 +24,7 @@ set (RTENGINESOURCEFILES colortemp.cc curves.cc flatcurves.cc diagonalcurves.cc
ciecam02.cc
)
if (NOT KLT_FOUND)
if (NOT USE_SYSTEM_KLT)
set (RTENGINESOURCEFILES ${RTENGINESOURCEFILES}
klt/convolve.cc klt/error.cc klt/klt.cc klt/klt_util.cc klt/pnmio.cc klt/pyramid.cc klt/selectGoodFeatures.cc
klt/storeFeatures.cc klt/trackFeatures.cc klt/writeFeatures.cc