From 9205b506b50c941ee13c78243f51a2e15d9fe16f Mon Sep 17 00:00:00 2001 From: Mattia Verga Date: Sun, 24 Nov 2019 13:48:12 +0100 Subject: [PATCH] Fix linking against system klt --- rtengine/CMakeLists.txt | 6 ++++++ rtengine/calc_distort.cc | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/rtengine/CMakeLists.txt b/rtengine/CMakeLists.txt index f58afde5e..711818a6d 100644 --- a/rtengine/CMakeLists.txt +++ b/rtengine/CMakeLists.txt @@ -12,6 +12,11 @@ include_directories(${EXTRA_INCDIR} ${LENSFUN_INCLUDE_DIRS} ${RSVG_INCLUDE_DIRS} ) +if(NOT WITH_SYSTEM_KLT) + include_directories("${CMAKE_SOURCE_DIR}/rtengine/klt") +else() + include_directories(${KLT_INCLUDE_DIRS}) +endif() link_directories("${PROJECT_SOURCE_DIR}/rtexif" ${EXPAT_LIBRARY_DIRS} @@ -184,6 +189,7 @@ target_link_libraries(rtengine rtexif ${ZLIB_LIBRARIES} ${LENSFUN_LIBRARIES} ${RSVG_LIBRARIES} + ${KLT_LIBRARIES} ) install(FILES ${CAMCONSTSFILE} DESTINATION "${DATADIR}" PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ) diff --git a/rtengine/calc_distort.cc b/rtengine/calc_distort.cc index 7af47adb2..3a7a4a1c4 100644 --- a/rtengine/calc_distort.cc +++ b/rtengine/calc_distort.cc @@ -5,8 +5,8 @@ locations (before and after tracking) to text files and to PPM files, and prints the features to the screen. **********************************************************************/ -#include "klt/pnmio.h" -#include "klt/klt.h" +#include +#include #include #include