Skip to content
Snippets Groups Projects
Commit 9550e5e8 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: #1757: move siftfast to a subfolder

parent dccfd1e8
No related branches found
No related tags found
No related merge requests found
Showing
with 6 additions and 6 deletions
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include "otbSiftFastImageFilter.h" #include "otbSiftFastImageFilter.h"
#include "siftfast.h" #include "otb_siftfast.h"
#include "itkContinuousIndex.h" #include "itkContinuousIndex.h"
#include "itkImageRegionConstIterator.h" #include "itkImageRegionConstIterator.h"
......
...@@ -33,7 +33,7 @@ if( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX ) ...@@ -33,7 +33,7 @@ if( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX )
set(IS_SIFTFAST_COMPILE 0) set(IS_SIFTFAST_COMPILE 0)
try_compile(IS_SIFTFAST_COMPILE try_compile(IS_SIFTFAST_COMPILE
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/test_try_compile_libsiftfast.cpp ${CMAKE_CURRENT_SOURCE_DIR}/otbsiftfast/test_try_compile_libsiftfast.cpp
OUTPUT_VARIABLE OUTPUT) OUTPUT_VARIABLE OUTPUT)
if(IS_SIFTFAST_COMPILE) if(IS_SIFTFAST_COMPILE)
message(STATUS "Try to compile libsiftfast.cpp -- yes.") message(STATUS "Try to compile libsiftfast.cpp -- yes.")
...@@ -41,7 +41,7 @@ if( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX ) ...@@ -41,7 +41,7 @@ if( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX )
message(STATUS "Try to compile libsiftfast.cpp -- no. OUTPUT_VARIABLE has ${OUTPUT}") message(STATUS "Try to compile libsiftfast.cpp -- no. OUTPUT_VARIABLE has ${OUTPUT}")
try_compile(IS_SIFTFAST_COMPILE2 try_compile(IS_SIFTFAST_COMPILE2
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/test_try_compile_libsiftfast.cpp ${CMAKE_CURRENT_SOURCE_DIR}/otbsiftfast/test_try_compile_libsiftfast.cpp
COMPILE_DEFINITIONS -DOTB_DISABLE_FAST_FUNCTIONS COMPILE_DEFINITIONS -DOTB_DISABLE_FAST_FUNCTIONS
OUTPUT_VARIABLE OUTPUT) OUTPUT_VARIABLE OUTPUT)
if(IS_SIFTFAST_COMPILE2) if(IS_SIFTFAST_COMPILE2)
...@@ -75,7 +75,7 @@ endif() ...@@ -75,7 +75,7 @@ endif()
#set(CMAKE_CXX_FLAGS_RELEASE "-O3 -g") #set(CMAKE_CXX_FLAGS_RELEASE "-O3 -g")
#add_xxdefinitions(" -Wall -fPIC ") #add_xxdefinitions(" -Wall -fPIC ")
add_library(otbsiftfast libsiftfast.cpp) add_library(otbsiftfast otbsiftfast/libsiftfast.cpp)
if( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX ) if( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX )
# target_link_libraries(otbsiftfast m stdc++) # target_link_libraries(otbsiftfast m stdc++)
target_link_libraries(otbsiftfast m) target_link_libraries(otbsiftfast m)
...@@ -97,7 +97,7 @@ endif() ...@@ -97,7 +97,7 @@ endif()
#set_target_properties(otbsiftfast PROPERTIES OUTPUT_NAME siftfast CLEAN_DIRECT_OUTPUT 1) #set_target_properties(otbsiftfast PROPERTIES OUTPUT_NAME siftfast CLEAN_DIRECT_OUTPUT 1)
# compile without depending on libsiftfast # compile without depending on libsiftfast
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/otbsiftfast)
#set_target_properties(siftfast PROPERTIES COMPILE_FLAGS "-DDVPROFILE") #set_target_properties(siftfast PROPERTIES COMPILE_FLAGS "-DDVPROFILE")
#target_link_libraries(siftfast libsiftfast) #target_link_libraries(siftfast libsiftfast)
...@@ -113,7 +113,7 @@ install(TARGETS otbsiftfast ...@@ -113,7 +113,7 @@ install(TARGETS otbsiftfast
ARCHIVE DESTINATION ${OTB3P_INSTALL_ARCHIVE_DIR} COMPONENT Development ARCHIVE DESTINATION ${OTB3P_INSTALL_ARCHIVE_DIR} COMPONENT Development
) )
install(FILES siftfast.h install(FILES otbsiftfast/siftfast.h
DESTINATION ${OTB3P_INSTALL_INCLUDE_DIR}/otbsiftfast DESTINATION ${OTB3P_INSTALL_INCLUDE_DIR}/otbsiftfast
COMPONENT Development COMPONENT Development
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment