Skip to content

Commit

Permalink
[third_party] Fix fast library cmake installation. openMVG#625
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoulon committed Sep 14, 2016
1 parent 312deee commit 114888f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/third_party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ SET(EASYEXIF_INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/include/openMVG/third_p
ADD_SUBDIRECTORY(easyexif)

# Fast corner detector
SET(FAST_INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/include/openMVG/third_party/fast)
ADD_SUBDIRECTORY(fast)

##
Expand Down
13 changes: 13 additions & 0 deletions src/third_party/fast/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,17 @@ project(fast)
file(GLOB_RECURSE C_FILES ${CMAKE_CURRENT_SOURCE_DIR} *.c)
set_source_files_properties(${C_FILES} PROPERTIES LANGUAGE CXX)
add_library(fast ${C_FILES})

if(FAST_INCLUDE_INSTALL_DIR)
set(INCLUDE_INSTALL_DIR ${FAST_INCLUDE_INSTALL_DIR})
else()
set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/fast")
endif()

install(
DIRECTORY .
DESTINATION ${INCLUDE_INSTALL_DIR}
COMPONENT headers
FILES_MATCHING PATTERN "*.h"
)
install(TARGETS fast DESTINATION lib EXPORT openMVG-targets)

0 comments on commit 114888f

Please sign in to comment.